package result

var defaultTemplate = `<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ApiCat分析结果页</title>
    <script>
////////////////template section////////////////
var analysis_result = {{ $.AnalysisResult }};
var labels = {{ $.Labels }};
//////////////////////////////////////
    </script>
    <script type="module" crossorigin>
var KS=Object.defineProperty;var XS=(e,t,n)=>t in e?KS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ut=(e,t,n)=>(XS(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&i(l)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerpolicy&&(o.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?o.credentials="include":r.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function Ac(e,t){const n=Object.create(null),i=e.split(",");for(let r=0;r<i.length;r++)n[i[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}function is(e){if(yt(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],r=De(i)?ZS(i):is(i);if(r)for(const o in r)t[o]=r[o]}return t}else{if(De(e))return e;if(ue(e))return e}}const qS=/;(?![^(]*\))/g,GS=/:([^]+)/,JS=/\/\*.*?\*\//gs;function ZS(e){const t={};return e.replace(JS,"").split(qS).forEach(n=>{if(n){const i=n.split(GS);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Sr(e){let t="";if(De(e))t=e;else if(yt(e))for(let n=0;n<e.length;n++){const i=Sr(e[n]);i&&(t+=i+" ")}else if(ue(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const QS="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",tP=Ac(QS);function Q_(e){return!!e||e===""}function eP(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=lo(e[i],t[i]);return n}function lo(e,t){if(e===t)return!0;let n=Xd(e),i=Xd(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=qs(e),i=qs(t),n||i)return e===t;if(n=yt(e),i=yt(t),n||i)return n&&i?eP(e,t):!1;if(n=ue(e),i=ue(t),n||i){if(!n||!i)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const l in e){const u=e.hasOwnProperty(l),c=t.hasOwnProperty(l);if(u&&!c||!u&&c||!lo(e[l],t[l]))return!1}}return String(e)===String(t)}function Tc(e,t){return e.findIndex(n=>lo(n,t))}const ne=e=>De(e)?e:e==null?"":yt(e)||ue(e)&&(e.toString===nm||!$t(e.toString))?JSON.stringify(e,tm,2):String(e),tm=(e,t)=>t&&t.__v_isRef?tm(e,t.value):Gr(t)?{[` + "`" + `Map(${t.size})` + "`" + `]:[...t.entries()].reduce((n,[i,r])=>(n[` + "`" + `${i} =>` + "`" + `]=r,n),{})}:us(t)?{[` + "`" + `Set(${t.size})` + "`" + `]:[...t.values()]}:ue(t)&&!yt(t)&&!im(t)?String(t):t,he={},qr=[],Yn=()=>{},nP=()=>!1,iP=/^on[^a-z]/,al=e=>iP.test(e),Ec=e=>e.startsWith("onUpdate:"),Ke=Object.assign,Ic=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},rP=Object.prototype.hasOwnProperty,Kt=(e,t)=>rP.call(e,t),yt=Array.isArray,Gr=e=>uo(e)==="[object Map]",us=e=>uo(e)==="[object Set]",Xd=e=>uo(e)==="[object Date]",$t=e=>typeof e=="function",De=e=>typeof e=="string",qs=e=>typeof e=="symbol",ue=e=>e!==null&&typeof e=="object",em=e=>ue(e)&&$t(e.then)&&$t(e.catch),nm=Object.prototype.toString,uo=e=>nm.call(e),sP=e=>uo(e).slice(8,-1),im=e=>uo(e)==="[object Object]",Dc=e=>De(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ca=Ac(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ll=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},oP=/-(\w)/g,rs=ll(e=>e.replace(oP,(t,n)=>n?n.toUpperCase():"")),aP=/\B([A-Z])/g,cs=ll(e=>e.replace(aP,"-$1").toLowerCase()),rm=ll(e=>e.charAt(0).toUpperCase()+e.slice(1)),Bu=ll(e=>e?` + "`" + `on${rm(e)}` + "`" + `:""),Gs=(e,t)=>!Object.is(e,t),Aa=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ra=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Lc=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let qd;const lP=()=>qd||(qd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let xn;class uP{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=xn,!t&&xn&&(this.index=(xn.scopes||(xn.scopes=[])).push(this)-1)}run(t){if(this.active){const n=xn;try{return xn=this,t()}finally{xn=n}}}on(){xn=this}off(){xn=this.parent}stop(t){if(this.active){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this.active=!1}}}function cP(e,t=xn){t&&t.active&&t.effects.push(e)}function fP(){return xn}function hP(e){xn&&xn.cleanups.push(e)}const $c=e=>{const t=new Set(e);return t.w=0,t.n=0,t},sm=e=>(e.w&Ki)>0,om=e=>(e.n&Ki)>0,dP=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ki},pP=e=>{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i<t.length;i++){const r=t[i];sm(r)&&!om(r)?r.delete(e):t[n++]=r,r.w&=~Ki,r.n&=~Ki}t.length=n}},ec=new WeakMap;let ks=0,Ki=1;const nc=30;let Un;const br=Symbol(""),ic=Symbol("");class Rc{constructor(t,n=null,i){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,cP(this,i)}run(){if(!this.active)return this.fn();let t=Un,n=Ui;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Un,Un=this,Ui=!0,Ki=1<<++ks,ks<=nc?dP(this):Gd(this),this.fn()}finally{ks<=nc&&pP(this),Ki=1<<--ks,Un=this.parent,Ui=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Un===this?this.deferStop=!0:this.active&&(Gd(this),this.onStop&&this.onStop(),this.active=!1)}}function Gd(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Ui=!0;const am=[];function fs(){am.push(Ui),Ui=!1}function hs(){const e=am.pop();Ui=e===void 0?!0:e}function Sn(e,t,n){if(Ui&&Un){let i=ec.get(e);i||ec.set(e,i=new Map);let r=i.get(n);r||i.set(n,r=$c()),lm(r)}}function lm(e,t){let n=!1;ks<=nc?om(e)||(e.n|=Ki,n=!sm(e)):n=!e.has(Un),n&&(e.add(Un),Un.deps.push(e))}function Ci(e,t,n,i,r,o){const l=ec.get(e);if(!l)return;let u=[];if(t==="clear")u=[...l.values()];else if(n==="length"&&yt(e)){const c=Lc(i);l.forEach((h,d)=>{(d==="length"||d>=c)&&u.push(h)})}else switch(n!==void 0&&u.push(l.get(n)),t){case"add":yt(e)?Dc(n)&&u.push(l.get("length")):(u.push(l.get(br)),Gr(e)&&u.push(l.get(ic)));break;case"delete":yt(e)||(u.push(l.get(br)),Gr(e)&&u.push(l.get(ic)));break;case"set":Gr(e)&&u.push(l.get(br));break}if(u.length===1)u[0]&&rc(u[0]);else{const c=[];for(const h of u)h&&c.push(...h);rc($c(c))}}function rc(e,t){const n=yt(e)?e:[...e];for(const i of n)i.computed&&Jd(i);for(const i of n)i.computed||Jd(i)}function Jd(e,t){(e!==Un||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const gP=Ac("__proto__,__v_isRef,__isVue"),um=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(qs)),_P=kc(),mP=kc(!1,!0),vP=kc(!0),Zd=bP();function bP(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=kt(this);for(let o=0,l=this.length;o<l;o++)Sn(i,"get",o+"");const r=i[t](...n);return r===-1||r===!1?i[t](...n.map(kt)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){fs();const i=kt(this)[t].apply(this,n);return hs(),i}}),e}function kc(e=!1,t=!1){return function(i,r,o){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&o===(e?t?RP:pm:t?dm:hm).get(i))return i;const l=yt(i);if(!e&&l&&Kt(Zd,r))return Reflect.get(Zd,r,o);const u=Reflect.get(i,r,o);return(qs(r)?um.has(r):gP(r))||(e||Sn(i,"get",r),t)?u:we(u)?l&&Dc(r)?u:u.value:ue(u)?e?Hc(u):Ct(u):u}}const yP=cm(),xP=cm(!0);function cm(e=!1){return function(n,i,r,o){let l=n[i];if(ss(l)&&we(l)&&!we(r))return!1;if(!e&&(!ka(r)&&!ss(r)&&(l=kt(l),r=kt(r)),!yt(n)&&we(l)&&!we(r)))return l.value=r,!0;const u=yt(n)&&Dc(i)?Number(i)<n.length:Kt(n,i),c=Reflect.set(n,i,r,o);return n===kt(o)&&(u?Gs(r,l)&&Ci(n,"set",i,r):Ci(n,"add",i,r)),c}}function wP(e,t){const n=Kt(e,t);e[t];const i=Reflect.deleteProperty(e,t);return i&&n&&Ci(e,"delete",t,void 0),i}function OP(e,t){const n=Reflect.has(e,t);return(!qs(t)||!um.has(t))&&Sn(e,"has",t),n}function SP(e){return Sn(e,"iterate",yt(e)?"length":br),Reflect.ownKeys(e)}const fm={get:_P,set:yP,deleteProperty:wP,has:OP,ownKeys:SP},PP={get:vP,set(e,t){return!0},deleteProperty(e,t){return!0}},MP=Ke({},fm,{get:mP,set:xP}),Fc=e=>e,ul=e=>Reflect.getPrototypeOf(e);function ra(e,t,n=!1,i=!1){e=e.__v_raw;const r=kt(e),o=kt(t);n||(t!==o&&Sn(r,"get",t),Sn(r,"get",o));const{has:l}=ul(r),u=i?Fc:n?Nc:Js;if(l.call(r,t))return u(e.get(t));if(l.call(r,o))return u(e.get(o));e!==r&&e.get(t)}function sa(e,t=!1){const n=this.__v_raw,i=kt(n),r=kt(e);return t||(e!==r&&Sn(i,"has",e),Sn(i,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function oa(e,t=!1){return e=e.__v_raw,!t&&Sn(kt(e),"iterate",br),Reflect.get(e,"size",e)}function Qd(e){e=kt(e);const t=kt(this);return ul(t).has.call(t,e)||(t.add(e),Ci(t,"add",e,e)),this}function tp(e,t){t=kt(t);const n=kt(this),{has:i,get:r}=ul(n);let o=i.call(n,e);o||(e=kt(e),o=i.call(n,e));const l=r.call(n,e);return n.set(e,t),o?Gs(t,l)&&Ci(n,"set",e,t):Ci(n,"add",e,t),this}function ep(e){const t=kt(this),{has:n,get:i}=ul(t);let r=n.call(t,e);r||(e=kt(e),r=n.call(t,e)),i&&i.call(t,e);const o=t.delete(e);return r&&Ci(t,"delete",e,void 0),o}function np(){const e=kt(this),t=e.size!==0,n=e.clear();return t&&Ci(e,"clear",void 0,void 0),n}function aa(e,t){return function(i,r){const o=this,l=o.__v_raw,u=kt(l),c=t?Fc:e?Nc:Js;return!e&&Sn(u,"iterate",br),l.forEach((h,d)=>i.call(r,c(h),c(d),o))}}function la(e,t,n){return function(...i){const r=this.__v_raw,o=kt(r),l=Gr(o),u=e==="entries"||e===Symbol.iterator&&l,c=e==="keys"&&l,h=r[e](...i),d=n?Fc:t?Nc:Js;return!t&&Sn(o,"iterate",c?ic:br),{next(){const{value:g,done:_}=h.next();return _?{value:g,done:_}:{value:u?[d(g[0]),d(g[1])]:d(g),done:_}},[Symbol.iterator](){return this}}}}function Bi(e){return function(...t){return e==="delete"?!1:this}}function CP(){const e={get(o){return ra(this,o)},get size(){return oa(this)},has:sa,add:Qd,set:tp,delete:ep,clear:np,forEach:aa(!1,!1)},t={get(o){return ra(this,o,!1,!0)},get size(){return oa(this)},has:sa,add:Qd,set:tp,delete:ep,clear:np,forEach:aa(!1,!0)},n={get(o){return ra(this,o,!0)},get size(){return oa(this,!0)},has(o){return sa.call(this,o,!0)},add:Bi("add"),set:Bi("set"),delete:Bi("delete"),clear:Bi("clear"),forEach:aa(!0,!1)},i={get(o){return ra(this,o,!0,!0)},get size(){return oa(this,!0)},has(o){return sa.call(this,o,!0)},add:Bi("add"),set:Bi("set"),delete:Bi("delete"),clear:Bi("clear"),forEach:aa(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=la(o,!1,!1),n[o]=la(o,!0,!1),t[o]=la(o,!1,!0),i[o]=la(o,!0,!0)}),[e,n,t,i]}const[AP,TP,EP,IP]=CP();function Bc(e,t){const n=t?e?IP:EP:e?TP:AP;return(i,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?i:Reflect.get(Kt(n,r)&&r in i?n:i,r,o)}const DP={get:Bc(!1,!1)},LP={get:Bc(!1,!0)},$P={get:Bc(!0,!1)},hm=new WeakMap,dm=new WeakMap,pm=new WeakMap,RP=new WeakMap;function kP(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function FP(e){return e.__v_skip||!Object.isExtensible(e)?0:kP(sP(e))}function Ct(e){return ss(e)?e:zc(e,!1,fm,DP,hm)}function BP(e){return zc(e,!1,MP,LP,dm)}function Hc(e){return zc(e,!0,PP,$P,pm)}function zc(e,t,n,i,r){if(!ue(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const l=FP(e);if(l===0)return e;const u=new Proxy(e,l===2?i:n);return r.set(e,u),u}function Jr(e){return ss(e)?Jr(e.__v_raw):!!(e&&e.__v_isReactive)}function ss(e){return!!(e&&e.__v_isReadonly)}function ka(e){return!!(e&&e.__v_isShallow)}function Ws(e){return Jr(e)||ss(e)}function kt(e){const t=e&&e.__v_raw;return t?kt(t):e}function gm(e){return Ra(e,"__v_skip",!0),e}const Js=e=>ue(e)?Ct(e):e,Nc=e=>ue(e)?Hc(e):e;function Wc(e){Ui&&Un&&(e=kt(e),lm(e.dep||(e.dep=$c())))}function Uc(e,t){e=kt(e),e.dep&&rc(e.dep)}function we(e){return!!(e&&e.__v_isRef===!0)}function R(e){return _m(e,!1)}function co(e){return _m(e,!0)}function _m(e,t){return we(e)?e:new HP(e,t)}class HP{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:kt(t),this._value=n?t:Js(t)}get value(){return Wc(this),this._value}set value(t){const n=this.__v_isShallow||ka(t)||ss(t);t=n?t:kt(t),Gs(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Js(t),Uc(this))}}function Yt(e){return we(e)?e.value:e}const zP={get:(e,t,n)=>Yt(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return we(r)&&!we(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function mm(e){return Jr(e)?e:new Proxy(e,zP)}class NP{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:i}=t(()=>Wc(this),()=>Uc(this));this._get=n,this._set=i}get value(){return this._get()}set value(t){this._set(t)}}function vm(e){return new NP(e)}function bm(e){const t=yt(e)?new Array(e.length):{};for(const n in e)t[n]=ym(e,n);return t}class WP{constructor(t,n,i){this._object=t,this._key=n,this._defaultValue=i,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function ym(e,t,n){const i=e[t];return we(i)?i:new WP(e,t,n)}var xm;class UP{constructor(t,n,i,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[xm]=!1,this._dirty=!0,this.effect=new Rc(t,()=>{this._dirty||(this._dirty=!0,Uc(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=i}get value(){const t=kt(this);return Wc(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}xm="__v_isReadonly";function Fa(e,t,n=!1){let i,r;const o=$t(e);return o?(i=e,r=Yn):(i=e.get,r=e.set),new UP(i,r,o||!r,n)}function Vi(e,t,n,i){let r;try{r=i?e(...i):e()}catch(o){cl(o,t,n)}return r}function kn(e,t,n,i){if($t(e)){const o=Vi(e,t,n,i);return o&&em(o)&&o.catch(l=>{cl(l,t,n)}),o}const r=[];for(let o=0;o<e.length;o++)r.push(kn(e[o],t,n,i));return r}function cl(e,t,n,i=!0){const r=t?t.vnode:null;if(t){let o=t.parent;const l=t.proxy,u=n;for(;o;){const h=o.ec;if(h){for(let d=0;d<h.length;d++)if(h[d](e,l,u)===!1)return}o=o.parent}const c=t.appContext.config.errorHandler;if(c){Vi(c,null,10,[e,l,u]);return}}VP(e,n,r,i)}function VP(e,t,n,i=!0){console.error(e)}let Zs=!1,sc=!1;const Ve=[];let ri=0;const Zr=[];let Si=null,pr=0;const wm=Promise.resolve();let Vc=null;function ds(e){const t=Vc||wm;return e?t.then(this?e.bind(this):e):t}function jP(e){let t=ri+1,n=Ve.length;for(;t<n;){const i=t+n>>>1;Qs(Ve[i])<e?t=i+1:n=i}return t}function jc(e){(!Ve.length||!Ve.includes(e,Zs&&e.allowRecurse?ri+1:ri))&&(e.id==null?Ve.push(e):Ve.splice(jP(e.id),0,e),Om())}function Om(){!Zs&&!sc&&(sc=!0,Vc=wm.then(Pm))}function YP(e){const t=Ve.indexOf(e);t>ri&&Ve.splice(t,1)}function KP(e){yt(e)?Zr.push(...e):(!Si||!Si.includes(e,e.allowRecurse?pr+1:pr))&&Zr.push(e),Om()}function ip(e,t=Zs?ri+1:0){for(;t<Ve.length;t++){const n=Ve[t];n&&n.pre&&(Ve.splice(t,1),t--,n())}}function Sm(e){if(Zr.length){const t=[...new Set(Zr)];if(Zr.length=0,Si){Si.push(...t);return}for(Si=t,Si.sort((n,i)=>Qs(n)-Qs(i)),pr=0;pr<Si.length;pr++)Si[pr]();Si=null,pr=0}}const Qs=e=>e.id==null?1/0:e.id,XP=(e,t)=>{const n=Qs(e)-Qs(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Pm(e){sc=!1,Zs=!0,Ve.sort(XP);const t=Yn;try{for(ri=0;ri<Ve.length;ri++){const n=Ve[ri];n&&n.active!==!1&&Vi(n,null,14)}}finally{ri=0,Ve.length=0,Sm(),Zs=!1,Vc=null,(Ve.length||Zr.length)&&Pm()}}function qP(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||he;let r=n;const o=t.startsWith("update:"),l=o&&t.slice(7);if(l&&l in i){const d=` + "`" + `${l==="modelValue"?"model":l}Modifiers` + "`" + `,{number:g,trim:_}=i[d]||he;_&&(r=n.map(m=>De(m)?m.trim():m)),g&&(r=n.map(Lc))}let u,c=i[u=Bu(t)]||i[u=Bu(rs(t))];!c&&o&&(c=i[u=Bu(cs(t))]),c&&kn(c,e,6,r);const h=i[u+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,kn(h,e,6,r)}}function Mm(e,t,n=!1){const i=t.emitsCache,r=i.get(e);if(r!==void 0)return r;const o=e.emits;let l={},u=!1;if(!$t(e)){const c=h=>{const d=Mm(h,t,!0);d&&(u=!0,Ke(l,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!u?(ue(e)&&i.set(e,null),null):(yt(o)?o.forEach(c=>l[c]=null):Ke(l,o),ue(e)&&i.set(e,l),l)}function fl(e,t){return!e||!al(t)?!1:(t=t.slice(2).replace(/Once$/,""),Kt(e,t[0].toLowerCase()+t.slice(1))||Kt(e,cs(t))||Kt(e,t))}let je=null,hl=null;function Ba(e){const t=je;return je=e,hl=e&&e.type.__scopeId||null,t}function Cm(e){hl=e}function Am(){hl=null}function xe(e,t=je,n){if(!t||e._n)return e;const i=(...r)=>{i._d&&hp(-1);const o=Ba(t);let l;try{l=e(...r)}finally{Ba(o),i._d&&hp(1)}return l};return i._n=!0,i._c=!0,i._d=!0,i}function Hu(e){const{type:t,vnode:n,proxy:i,withProxy:r,props:o,propsOptions:[l],slots:u,attrs:c,emit:h,render:d,renderCache:g,data:_,setupState:m,ctx:x,inheritAttrs:b}=e;let O,C;const L=Ba(e);try{if(n.shapeFlag&4){const k=r||i;O=ii(d.call(k,k,g,o,m,_,x)),C=c}else{const k=t;O=ii(k.length>1?k(o,{attrs:c,slots:u,emit:h}):k(o,null)),C=t.props?c:GP(c)}}catch(k){js.length=0,cl(k,e,1),O=Vt(Fn)}let A=O;if(C&&b!==!1){const k=Object.keys(C),{shapeFlag:$}=A;k.length&&$&7&&(l&&k.some(Ec)&&(C=JP(C,l)),A=Xi(A,C))}return n.dirs&&(A=Xi(A),A.dirs=A.dirs?A.dirs.concat(n.dirs):n.dirs),n.transition&&(A.transition=n.transition),O=A,Ba(L),O}const GP=e=>{let t;for(const n in e)(n==="class"||n==="style"||al(n))&&((t||(t={}))[n]=e[n]);return t},JP=(e,t)=>{const n={};for(const i in e)(!Ec(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function ZP(e,t,n){const{props:i,children:r,component:o}=e,{props:l,children:u,patchFlag:c}=t,h=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return i?rp(i,l,h):!!l;if(c&8){const d=t.dynamicProps;for(let g=0;g<d.length;g++){const _=d[g];if(l[_]!==i[_]&&!fl(h,_))return!0}}}else return(r||u)&&(!u||!u.$stable)?!0:i===l?!1:i?l?rp(i,l,h):!0:!!l;return!1}function rp(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let r=0;r<i.length;r++){const o=i[r];if(t[o]!==e[o]&&!fl(n,o))return!0}return!1}function QP({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const tM=e=>e.__isSuspense;function eM(e,t){t&&t.pendingBranch?yt(e)?t.effects.push(...e):t.effects.push(e):KP(e)}function dl(e,t){if(He){let n=He.provides;const i=He.parent&&He.parent.provides;i===n&&(n=He.provides=Object.create(i)),n[e]=t}}function yr(e,t,n=!1){const i=He||je;if(i){const r=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&$t(t)?t.call(i.proxy):t}}function Tm(e,t){return Yc(e,null,t)}const ua={};function Mt(e,t,n){return Yc(e,t,n)}function Yc(e,t,{immediate:n,deep:i,flush:r,onTrack:o,onTrigger:l}=he){const u=He;let c,h=!1,d=!1;if(we(e)?(c=()=>e.value,h=ka(e)):Jr(e)?(c=()=>e,i=!0):yt(e)?(d=!0,h=e.some(A=>Jr(A)||ka(A)),c=()=>e.map(A=>{if(we(A))return A.value;if(Jr(A))return vr(A);if($t(A))return Vi(A,u,2)})):$t(e)?t?c=()=>Vi(e,u,2):c=()=>{if(!(u&&u.isUnmounted))return g&&g(),kn(e,u,3,[_])}:c=Yn,t&&i){const A=c;c=()=>vr(A())}let g,_=A=>{g=C.onStop=()=>{Vi(A,u,4)}},m;if(eo)if(_=Yn,t?n&&kn(t,u,3,[c(),d?[]:void 0,_]):c(),r==="sync"){const A=jM();m=A.__watcherHandles||(A.__watcherHandles=[])}else return Yn;let x=d?new Array(e.length).fill(ua):ua;const b=()=>{if(!!C.active)if(t){const A=C.run();(i||h||(d?A.some((k,$)=>Gs(k,x[$])):Gs(A,x)))&&(g&&g(),kn(t,u,3,[A,x===ua?void 0:d&&x[0]===ua?[]:x,_]),x=A)}else C.run()};b.allowRecurse=!!t;let O;r==="sync"?O=b:r==="post"?O=()=>fn(b,u&&u.suspense):(b.pre=!0,u&&(b.id=u.uid),O=()=>jc(b));const C=new Rc(c,O);t?n?b():x=C.run():r==="post"?fn(C.run.bind(C),u&&u.suspense):C.run();const L=()=>{C.stop(),u&&u.scope&&Ic(u.scope.effects,C)};return m&&m.push(L),L}function nM(e,t,n){const i=this.proxy,r=De(e)?e.includes(".")?Em(i,e):()=>i[e]:e.bind(i,i);let o;$t(t)?o=t:(o=t.handler,n=t);const l=He;os(this);const u=Yc(r,o.bind(i),n);return l?os(l):xr(),u}function Em(e,t){const n=t.split(".");return()=>{let i=e;for(let r=0;r<n.length&&i;r++)i=i[n[r]];return i}}function vr(e,t){if(!ue(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),we(e))vr(e.value,t);else if(yt(e))for(let n=0;n<e.length;n++)vr(e[n],t);else if(us(e)||Gr(e))e.forEach(n=>{vr(n,t)});else if(im(e))for(const n in e)vr(e[n],t);return e}function iM(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return fo(()=>{e.isMounted=!0}),Kc(()=>{e.isUnmounting=!0}),e}const Ln=[Function,Array],rM={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ln,onEnter:Ln,onAfterEnter:Ln,onEnterCancelled:Ln,onBeforeLeave:Ln,onLeave:Ln,onAfterLeave:Ln,onLeaveCancelled:Ln,onBeforeAppear:Ln,onAppear:Ln,onAfterAppear:Ln,onAppearCancelled:Ln},setup(e,{slots:t}){const n=Jc(),i=iM();let r;return()=>{const o=t.default&&Dm(t.default(),!0);if(!o||!o.length)return;let l=o[0];if(o.length>1){for(const b of o)if(b.type!==Fn){l=b;break}}const u=kt(e),{mode:c}=u;if(i.isLeaving)return zu(l);const h=sp(l);if(!h)return zu(l);const d=oc(h,u,i,n);ac(h,d);const g=n.subTree,_=g&&sp(g);let m=!1;const{getTransitionKey:x}=h.type;if(x){const b=x();r===void 0?r=b:b!==r&&(r=b,m=!0)}if(_&&_.type!==Fn&&(!gr(h,_)||m)){const b=oc(_,u,i,n);if(ac(_,b),c==="out-in")return i.isLeaving=!0,b.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},zu(l);c==="in-out"&&h.type!==Fn&&(b.delayLeave=(O,C,L)=>{const A=Im(i,_);A[String(_.key)]=_,O._leaveCb=()=>{C(),O._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=L})}return l}}},sM=rM;function Im(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function oc(e,t,n,i){const{appear:r,mode:o,persisted:l=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:h,onEnterCancelled:d,onBeforeLeave:g,onLeave:_,onAfterLeave:m,onLeaveCancelled:x,onBeforeAppear:b,onAppear:O,onAfterAppear:C,onAppearCancelled:L}=t,A=String(e.key),k=Im(n,e),$=(N,J)=>{N&&kn(N,i,9,J)},U=(N,J)=>{const it=J[1];$(N,J),yt(N)?N.every(dt=>dt.length<=1)&&it():N.length<=1&&it()},F={mode:o,persisted:l,beforeEnter(N){let J=u;if(!n.isMounted)if(r)J=b||u;else return;N._leaveCb&&N._leaveCb(!0);const it=k[A];it&&gr(e,it)&&it.el._leaveCb&&it.el._leaveCb(),$(J,[N])},enter(N){let J=c,it=h,dt=d;if(!n.isMounted)if(r)J=O||c,it=C||h,dt=L||d;else return;let Pt=!1;const ut=N._enterCb=rt=>{Pt||(Pt=!0,rt?$(dt,[N]):$(it,[N]),F.delayedLeave&&F.delayedLeave(),N._enterCb=void 0)};J?U(J,[N,ut]):ut()},leave(N,J){const it=String(e.key);if(N._enterCb&&N._enterCb(!0),n.isUnmounting)return J();$(g,[N]);let dt=!1;const Pt=N._leaveCb=ut=>{dt||(dt=!0,J(),ut?$(x,[N]):$(m,[N]),N._leaveCb=void 0,k[it]===e&&delete k[it])};k[it]=e,_?U(_,[N,Pt]):Pt()},clone(N){return oc(N,t,n,i)}};return F}function zu(e){if(pl(e))return e=Xi(e),e.children=null,e}function sp(e){return pl(e)?e.children?e.children[0]:void 0:e}function ac(e,t){e.shapeFlag&6&&e.component?ac(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Dm(e,t=!1,n){let i=[],r=0;for(let o=0;o<e.length;o++){let l=e[o];const u=n==null?l.key:String(n)+String(l.key!=null?l.key:o);l.type===de?(l.patchFlag&128&&r++,i=i.concat(Dm(l.children,t,u))):(t||l.type!==Fn)&&i.push(u!=null?Xi(l,{key:u}):l)}if(r>1)for(let o=0;o<i.length;o++)i[o].patchFlag=-2;return i}function It(e){return $t(e)?{setup:e,name:e.name}:e}const Us=e=>!!e.type.__asyncLoader,pl=e=>e.type.__isKeepAlive;function oM(e,t){Lm(e,"a",t)}function aM(e,t){Lm(e,"da",t)}function Lm(e,t,n=He){const i=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(gl(t,i,n),n){let r=n.parent;for(;r&&r.parent;)pl(r.parent.vnode)&&lM(i,t,n,r),r=r.parent}}function lM(e,t,n,i){const r=gl(t,e,i,!0);Rm(()=>{Ic(i[t],r)},n)}function gl(e,t,n=He,i=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;fs(),os(n);const u=kn(t,n,e,l);return xr(),hs(),u});return i?r.unshift(o):r.push(o),o}}const Ai=e=>(t,n=He)=>(!eo||e==="sp")&&gl(e,(...i)=>t(...i),n),_l=Ai("bm"),fo=Ai("m"),uM=Ai("bu"),$m=Ai("u"),Kc=Ai("bum"),Rm=Ai("um"),cM=Ai("sp"),fM=Ai("rtg"),hM=Ai("rtc");function dM(e,t=He){gl("ec",e,t)}function Qr(e,t){const n=je;if(n===null)return e;const i=bl(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[l,u,c,h=he]=t[o];l&&($t(l)&&(l={mounted:l,updated:l}),l.deep&&vr(u),r.push({dir:l,instance:i,value:u,oldValue:void 0,arg:c,modifiers:h}))}return e}function or(e,t,n,i){const r=e.dirs,o=t&&t.dirs;for(let l=0;l<r.length;l++){const u=r[l];o&&(u.oldValue=o[l].value);let c=u.dir[i];c&&(fs(),kn(c,n,8,[e.el,u,e,t]),hs())}}const pM=Symbol();function ji(e,t,n,i){let r;const o=n&&n[i];if(yt(e)||De(e)){r=new Array(e.length);for(let l=0,u=e.length;l<u;l++)r[l]=t(e[l],l,void 0,o&&o[l])}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,o&&o[l])}else if(ue(e))if(e[Symbol.iterator])r=Array.from(e,(l,u)=>t(l,u,void 0,o&&o[u]));else{const l=Object.keys(e);r=new Array(l.length);for(let u=0,c=l.length;u<c;u++){const h=l[u];r[u]=t(e[h],h,u,o&&o[u])}}else r=[];return n&&(n[i]=r),r}function oi(e,t,n={},i,r){if(je.isCE||je.parent&&Us(je.parent)&&je.parent.isCE)return t!=="default"&&(n.name=t),Vt("slot",n,i&&i());let o=e[t];o&&o._c&&(o._d=!1),St();const l=o&&km(o(n)),u=Vn(de,{key:n.key||l&&l.key||` + "`" + `_${t}` + "`" + `},l||(i?i():[]),l&&e._===1?64:-2);return!r&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),o&&o._c&&(o._d=!0),u}function km(e){return e.some(t=>za(t)?!(t.type===Fn||t.type===de&&!km(t.children)):!0)?e:null}const lc=e=>e?Km(e)?bl(e)||e.proxy:lc(e.parent):null,Vs=Ke(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>lc(e.parent),$root:e=>lc(e.root),$emit:e=>e.emit,$options:e=>Xc(e),$forceUpdate:e=>e.f||(e.f=()=>jc(e.update)),$nextTick:e=>e.n||(e.n=ds.bind(e.proxy)),$watch:e=>nM.bind(e)}),Nu=(e,t)=>e!==he&&!e.__isScriptSetup&&Kt(e,t),gM={get({_:e},t){const{ctx:n,setupState:i,data:r,props:o,accessCache:l,type:u,appContext:c}=e;let h;if(t[0]!=="$"){const m=l[t];if(m!==void 0)switch(m){case 1:return i[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Nu(i,t))return l[t]=1,i[t];if(r!==he&&Kt(r,t))return l[t]=2,r[t];if((h=e.propsOptions[0])&&Kt(h,t))return l[t]=3,o[t];if(n!==he&&Kt(n,t))return l[t]=4,n[t];uc&&(l[t]=0)}}const d=Vs[t];let g,_;if(d)return t==="$attrs"&&Sn(e,"get",t),d(e);if((g=u.__cssModules)&&(g=g[t]))return g;if(n!==he&&Kt(n,t))return l[t]=4,n[t];if(_=c.config.globalProperties,Kt(_,t))return _[t]},set({_:e},t,n){const{data:i,setupState:r,ctx:o}=e;return Nu(r,t)?(r[t]=n,!0):i!==he&&Kt(i,t)?(i[t]=n,!0):Kt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,propsOptions:o}},l){let u;return!!n[l]||e!==he&&Kt(e,l)||Nu(t,l)||(u=o[0])&&Kt(u,l)||Kt(i,l)||Kt(Vs,l)||Kt(r.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Kt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let uc=!0;function _M(e){const t=Xc(e),n=e.proxy,i=e.ctx;uc=!1,t.beforeCreate&&op(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:l,watch:u,provide:c,inject:h,created:d,beforeMount:g,mounted:_,beforeUpdate:m,updated:x,activated:b,deactivated:O,beforeDestroy:C,beforeUnmount:L,destroyed:A,unmounted:k,render:$,renderTracked:U,renderTriggered:F,errorCaptured:N,serverPrefetch:J,expose:it,inheritAttrs:dt,components:Pt,directives:ut,filters:rt}=t;if(h&&mM(h,i,null,e.appContext.config.unwrapInjectedRef),l)for(const E in l){const B=l[E];$t(B)&&(i[E]=B.bind(n))}if(r){const E=r.call(n,n);ue(E)&&(e.data=Ct(E))}if(uc=!0,o)for(const E in o){const B=o[E],Z=$t(B)?B.bind(n,n):$t(B.get)?B.get.bind(n,n):Yn,at=!$t(B)&&$t(B.set)?B.set.bind(n):Yn,ht=At({get:Z,set:at});Object.defineProperty(i,E,{enumerable:!0,configurable:!0,get:()=>ht.value,set:mt=>ht.value=mt})}if(u)for(const E in u)Fm(u[E],i,n,E);if(c){const E=$t(c)?c.call(n):c;Reflect.ownKeys(E).forEach(B=>{dl(B,E[B])})}d&&op(d,e,"c");function st(E,B){yt(B)?B.forEach(Z=>E(Z.bind(n))):B&&E(B.bind(n))}if(st(_l,g),st(fo,_),st(uM,m),st($m,x),st(oM,b),st(aM,O),st(dM,N),st(hM,U),st(fM,F),st(Kc,L),st(Rm,k),st(cM,J),yt(it))if(it.length){const E=e.exposed||(e.exposed={});it.forEach(B=>{Object.defineProperty(E,B,{get:()=>n[B],set:Z=>n[B]=Z})})}else e.exposed||(e.exposed={});$&&e.render===Yn&&(e.render=$),dt!=null&&(e.inheritAttrs=dt),Pt&&(e.components=Pt),ut&&(e.directives=ut)}function mM(e,t,n=Yn,i=!1){yt(e)&&(e=cc(e));for(const r in e){const o=e[r];let l;ue(o)?"default"in o?l=yr(o.from||r,o.default,!0):l=yr(o.from||r):l=yr(o),we(l)&&i?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>l.value,set:u=>l.value=u}):t[r]=l}}function op(e,t,n){kn(yt(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function Fm(e,t,n,i){const r=i.includes(".")?Em(n,i):()=>n[i];if(De(e)){const o=t[e];$t(o)&&Mt(r,o)}else if($t(e))Mt(r,e.bind(n));else if(ue(e))if(yt(e))e.forEach(o=>Fm(o,t,n,i));else{const o=$t(e.handler)?e.handler.bind(n):t[e.handler];$t(o)&&Mt(r,o,e)}}function Xc(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:l}}=e.appContext,u=o.get(t);let c;return u?c=u:!r.length&&!n&&!i?c=t:(c={},r.length&&r.forEach(h=>Ha(c,h,l,!0)),Ha(c,t,l)),ue(t)&&o.set(t,c),c}function Ha(e,t,n,i=!1){const{mixins:r,extends:o}=t;o&&Ha(e,o,n,!0),r&&r.forEach(l=>Ha(e,l,n,!0));for(const l in t)if(!(i&&l==="expose")){const u=vM[l]||n&&n[l];e[l]=u?u(e[l],t[l]):t[l]}return e}const vM={data:ap,props:hr,emits:hr,methods:hr,computed:hr,beforeCreate:Qe,created:Qe,beforeMount:Qe,mounted:Qe,beforeUpdate:Qe,updated:Qe,beforeDestroy:Qe,beforeUnmount:Qe,destroyed:Qe,unmounted:Qe,activated:Qe,deactivated:Qe,errorCaptured:Qe,serverPrefetch:Qe,components:hr,directives:hr,watch:yM,provide:ap,inject:bM};function ap(e,t){return t?e?function(){return Ke($t(e)?e.call(this,this):e,$t(t)?t.call(this,this):t)}:t:e}function bM(e,t){return hr(cc(e),cc(t))}function cc(e){if(yt(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Qe(e,t){return e?[...new Set([].concat(e,t))]:t}function hr(e,t){return e?Ke(Ke(Object.create(null),e),t):t}function yM(e,t){if(!e)return t;if(!t)return e;const n=Ke(Object.create(null),e);for(const i in t)n[i]=Qe(e[i],t[i]);return n}function xM(e,t,n,i=!1){const r={},o={};Ra(o,vl,1),e.propsDefaults=Object.create(null),Bm(e,t,r,o);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=i?r:BP(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function wM(e,t,n,i){const{props:r,attrs:o,vnode:{patchFlag:l}}=e,u=kt(r),[c]=e.propsOptions;let h=!1;if((i||l>0)&&!(l&16)){if(l&8){const d=e.vnode.dynamicProps;for(let g=0;g<d.length;g++){let _=d[g];if(fl(e.emitsOptions,_))continue;const m=t[_];if(c)if(Kt(o,_))m!==o[_]&&(o[_]=m,h=!0);else{const x=rs(_);r[x]=fc(c,u,x,m,e,!1)}else m!==o[_]&&(o[_]=m,h=!0)}}}else{Bm(e,t,r,o)&&(h=!0);let d;for(const g in u)(!t||!Kt(t,g)&&((d=cs(g))===g||!Kt(t,d)))&&(c?n&&(n[g]!==void 0||n[d]!==void 0)&&(r[g]=fc(c,u,g,void 0,e,!0)):delete r[g]);if(o!==u)for(const g in o)(!t||!Kt(t,g)&&!0)&&(delete o[g],h=!0)}h&&Ci(e,"set","$attrs")}function Bm(e,t,n,i){const[r,o]=e.propsOptions;let l=!1,u;if(t)for(let c in t){if(Ca(c))continue;const h=t[c];let d;r&&Kt(r,d=rs(c))?!o||!o.includes(d)?n[d]=h:(u||(u={}))[d]=h:fl(e.emitsOptions,c)||(!(c in i)||h!==i[c])&&(i[c]=h,l=!0)}if(o){const c=kt(n),h=u||he;for(let d=0;d<o.length;d++){const g=o[d];n[g]=fc(r,c,g,h[g],e,!Kt(h,g))}}return l}function fc(e,t,n,i,r,o){const l=e[n];if(l!=null){const u=Kt(l,"default");if(u&&i===void 0){const c=l.default;if(l.type!==Function&&$t(c)){const{propsDefaults:h}=r;n in h?i=h[n]:(os(r),i=h[n]=c.call(null,t),xr())}else i=c}l[0]&&(o&&!u?i=!1:l[1]&&(i===""||i===cs(n))&&(i=!0))}return i}function Hm(e,t,n=!1){const i=t.propsCache,r=i.get(e);if(r)return r;const o=e.props,l={},u=[];let c=!1;if(!$t(e)){const d=g=>{c=!0;const[_,m]=Hm(g,t,!0);Ke(l,_),m&&u.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!c)return ue(e)&&i.set(e,qr),qr;if(yt(o))for(let d=0;d<o.length;d++){const g=rs(o[d]);lp(g)&&(l[g]=he)}else if(o)for(const d in o){const g=rs(d);if(lp(g)){const _=o[d],m=l[g]=yt(_)||$t(_)?{type:_}:Object.assign({},_);if(m){const x=fp(Boolean,m.type),b=fp(String,m.type);m[0]=x>-1,m[1]=b<0||x<b,(x>-1||Kt(m,"default"))&&u.push(g)}}}const h=[l,u];return ue(e)&&i.set(e,h),h}function lp(e){return e[0]!=="$"}function up(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function cp(e,t){return up(e)===up(t)}function fp(e,t){return yt(t)?t.findIndex(n=>cp(n,e)):$t(t)&&cp(t,e)?0:-1}const zm=e=>e[0]==="_"||e==="$stable",qc=e=>yt(e)?e.map(ii):[ii(e)],OM=(e,t,n)=>{if(t._n)return t;const i=xe((...r)=>qc(t(...r)),n);return i._c=!1,i},Nm=(e,t,n)=>{const i=e._ctx;for(const r in e){if(zm(r))continue;const o=e[r];if($t(o))t[r]=OM(r,o,i);else if(o!=null){const l=qc(o);t[r]=()=>l}}},Wm=(e,t)=>{const n=qc(t);e.slots.default=()=>n},SM=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=kt(t),Ra(t,"_",n)):Nm(t,e.slots={})}else e.slots={},t&&Wm(e,t);Ra(e.slots,vl,1)},PM=(e,t,n)=>{const{vnode:i,slots:r}=e;let o=!0,l=he;if(i.shapeFlag&32){const u=t._;u?n&&u===1?o=!1:(Ke(r,t),!n&&u===1&&delete r._):(o=!t.$stable,Nm(t,r)),l=t}else t&&(Wm(e,t),l={default:1});if(o)for(const u in r)!zm(u)&&!(u in l)&&delete r[u]};function Um(){return{app:null,config:{isNativeTag:nP,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let MM=0;function CM(e,t){return function(i,r=null){$t(i)||(i=Object.assign({},i)),r!=null&&!ue(r)&&(r=null);const o=Um(),l=new Set;let u=!1;const c=o.app={_uid:MM++,_component:i,_props:r,_container:null,_context:o,_instance:null,version:YM,get config(){return o.config},set config(h){},use(h,...d){return l.has(h)||(h&&$t(h.install)?(l.add(h),h.install(c,...d)):$t(h)&&(l.add(h),h(c,...d))),c},mixin(h){return o.mixins.includes(h)||o.mixins.push(h),c},component(h,d){return d?(o.components[h]=d,c):o.components[h]},directive(h,d){return d?(o.directives[h]=d,c):o.directives[h]},mount(h,d,g){if(!u){const _=Vt(i,r);return _.appContext=o,d&&t?t(_,h):e(_,h,g),u=!0,c._container=h,h.__vue_app__=c,bl(_.component)||_.component.proxy}},unmount(){u&&(e(null,c._container),delete c._container.__vue_app__)},provide(h,d){return o.provides[h]=d,c}};return c}}function hc(e,t,n,i,r=!1){if(yt(e)){e.forEach((_,m)=>hc(_,t&&(yt(t)?t[m]:t),n,i,r));return}if(Us(i)&&!r)return;const o=i.shapeFlag&4?bl(i.component)||i.component.proxy:i.el,l=r?null:o,{i:u,r:c}=e,h=t&&t.r,d=u.refs===he?u.refs={}:u.refs,g=u.setupState;if(h!=null&&h!==c&&(De(h)?(d[h]=null,Kt(g,h)&&(g[h]=null)):we(h)&&(h.value=null)),$t(c))Vi(c,u,12,[l,d]);else{const _=De(c),m=we(c);if(_||m){const x=()=>{if(e.f){const b=_?Kt(g,c)?g[c]:d[c]:c.value;r?yt(b)&&Ic(b,o):yt(b)?b.includes(o)||b.push(o):_?(d[c]=[o],Kt(g,c)&&(g[c]=d[c])):(c.value=[o],e.k&&(d[e.k]=c.value))}else _?(d[c]=l,Kt(g,c)&&(g[c]=l)):m&&(c.value=l,e.k&&(d[e.k]=l))};l?(x.id=-1,fn(x,n)):x()}}}const fn=eM;function AM(e){return TM(e)}function TM(e,t){const n=lP();n.__VUE__=!0;const{insert:i,remove:r,patchProp:o,createElement:l,createText:u,createComment:c,setText:h,setElementText:d,parentNode:g,nextSibling:_,setScopeId:m=Yn,insertStaticContent:x}=e,b=(P,T,z,Y=null,q=null,tt=null,ot=!1,nt=null,et=!!T.dynamicChildren)=>{if(P===T)return;P&&!gr(P,T)&&(Y=nn(P),mt(P,q,tt,!0),P=null),T.patchFlag===-2&&(et=!1,T.dynamicChildren=null);const{type:X,ref:gt,shapeFlag:ft}=T;switch(X){case ml:O(P,T,z,Y);break;case Fn:C(P,T,z,Y);break;case Wu:P==null&&L(T,z,Y,ot);break;case de:Pt(P,T,z,Y,q,tt,ot,nt,et);break;default:ft&1?$(P,T,z,Y,q,tt,ot,nt,et):ft&6?ut(P,T,z,Y,q,tt,ot,nt,et):(ft&64||ft&128)&&X.process(P,T,z,Y,q,tt,ot,nt,et,te)}gt!=null&&q&&hc(gt,P&&P.ref,tt,T||P,!T)},O=(P,T,z,Y)=>{if(P==null)i(T.el=u(T.children),z,Y);else{const q=T.el=P.el;T.children!==P.children&&h(q,T.children)}},C=(P,T,z,Y)=>{P==null?i(T.el=c(T.children||""),z,Y):T.el=P.el},L=(P,T,z,Y)=>{[P.el,P.anchor]=x(P.children,T,z,Y,P.el,P.anchor)},A=({el:P,anchor:T},z,Y)=>{let q;for(;P&&P!==T;)q=_(P),i(P,z,Y),P=q;i(T,z,Y)},k=({el:P,anchor:T})=>{let z;for(;P&&P!==T;)z=_(P),r(P),P=z;r(T)},$=(P,T,z,Y,q,tt,ot,nt,et)=>{ot=ot||T.type==="svg",P==null?U(T,z,Y,q,tt,ot,nt,et):J(P,T,q,tt,ot,nt,et)},U=(P,T,z,Y,q,tt,ot,nt)=>{let et,X;const{type:gt,props:ft,shapeFlag:_t,transition:xt,dirs:Bt}=P;if(et=P.el=l(P.type,tt,ft&&ft.is,ft),_t&8?d(et,P.children):_t&16&&N(P.children,et,null,Y,q,tt&&gt!=="foreignObject",ot,nt),Bt&&or(P,null,Y,"created"),ft){for(const Nt in ft)Nt!=="value"&&!Ca(Nt)&&o(et,Nt,null,ft[Nt],tt,P.children,Y,q,re);"value"in ft&&o(et,"value",null,ft.value),(X=ft.onVnodeBeforeMount)&&Qn(X,Y,P)}F(et,P,P.scopeId,ot,Y),Bt&&or(P,null,Y,"beforeMount");const qt=(!q||q&&!q.pendingBranch)&&xt&&!xt.persisted;qt&&xt.beforeEnter(et),i(et,T,z),((X=ft&&ft.onVnodeMounted)||qt||Bt)&&fn(()=>{X&&Qn(X,Y,P),qt&&xt.enter(et),Bt&&or(P,null,Y,"mounted")},q)},F=(P,T,z,Y,q)=>{if(z&&m(P,z),Y)for(let tt=0;tt<Y.length;tt++)m(P,Y[tt]);if(q){let tt=q.subTree;if(T===tt){const ot=q.vnode;F(P,ot,ot.scopeId,ot.slotScopeIds,q.parent)}}},N=(P,T,z,Y,q,tt,ot,nt,et=0)=>{for(let X=et;X<P.length;X++){const gt=P[X]=nt?Hi(P[X]):ii(P[X]);b(null,gt,T,z,Y,q,tt,ot,nt)}},J=(P,T,z,Y,q,tt,ot)=>{const nt=T.el=P.el;let{patchFlag:et,dynamicChildren:X,dirs:gt}=T;et|=P.patchFlag&16;const ft=P.props||he,_t=T.props||he;let xt;z&&ar(z,!1),(xt=_t.onVnodeBeforeUpdate)&&Qn(xt,z,T,P),gt&&or(T,P,z,"beforeUpdate"),z&&ar(z,!0);const Bt=q&&T.type!=="foreignObject";if(X?it(P.dynamicChildren,X,nt,z,Y,Bt,tt):ot||B(P,T,nt,null,z,Y,Bt,tt,!1),et>0){if(et&16)dt(nt,T,ft,_t,z,Y,q);else if(et&2&&ft.class!==_t.class&&o(nt,"class",null,_t.class,q),et&4&&o(nt,"style",ft.style,_t.style,q),et&8){const qt=T.dynamicProps;for(let Nt=0;Nt<qt.length;Nt++){const ge=qt[Nt],qe=ft[ge],qn=_t[ge];(qn!==qe||ge==="value")&&o(nt,ge,qe,qn,q,P.children,z,Y,re)}}et&1&&P.children!==T.children&&d(nt,T.children)}else!ot&&X==null&&dt(nt,T,ft,_t,z,Y,q);((xt=_t.onVnodeUpdated)||gt)&&fn(()=>{xt&&Qn(xt,z,T,P),gt&&or(T,P,z,"updated")},Y)},it=(P,T,z,Y,q,tt,ot)=>{for(let nt=0;nt<T.length;nt++){const et=P[nt],X=T[nt],gt=et.el&&(et.type===de||!gr(et,X)||et.shapeFlag&70)?g(et.el):z;b(et,X,gt,null,Y,q,tt,ot,!0)}},dt=(P,T,z,Y,q,tt,ot)=>{if(z!==Y){if(z!==he)for(const nt in z)!Ca(nt)&&!(nt in Y)&&o(P,nt,z[nt],null,ot,T.children,q,tt,re);for(const nt in Y){if(Ca(nt))continue;const et=Y[nt],X=z[nt];et!==X&&nt!=="value"&&o(P,nt,X,et,ot,T.children,q,tt,re)}"value"in Y&&o(P,"value",z.value,Y.value)}},Pt=(P,T,z,Y,q,tt,ot,nt,et)=>{const X=T.el=P?P.el:u(""),gt=T.anchor=P?P.anchor:u("");let{patchFlag:ft,dynamicChildren:_t,slotScopeIds:xt}=T;xt&&(nt=nt?nt.concat(xt):xt),P==null?(i(X,z,Y),i(gt,z,Y),N(T.children,z,gt,q,tt,ot,nt,et)):ft>0&&ft&64&&_t&&P.dynamicChildren?(it(P.dynamicChildren,_t,z,q,tt,ot,nt),(T.key!=null||q&&T===q.subTree)&&Vm(P,T,!0)):B(P,T,z,gt,q,tt,ot,nt,et)},ut=(P,T,z,Y,q,tt,ot,nt,et)=>{T.slotScopeIds=nt,P==null?T.shapeFlag&512?q.ctx.activate(T,z,Y,ot,et):rt(T,z,Y,q,tt,ot,et):K(P,T,et)},rt=(P,T,z,Y,q,tt,ot)=>{const nt=P.component=BM(P,Y,q);if(pl(P)&&(nt.ctx.renderer=te),HM(nt),nt.asyncDep){if(q&&q.registerDep(nt,st),!P.el){const et=nt.subTree=Vt(Fn);C(null,et,T,z)}return}st(nt,P,T,z,q,tt,ot)},K=(P,T,z)=>{const Y=T.component=P.component;if(ZP(P,T,z))if(Y.asyncDep&&!Y.asyncResolved){E(Y,T,z);return}else Y.next=T,YP(Y.update),Y.update();else T.el=P.el,Y.vnode=T},st=(P,T,z,Y,q,tt,ot)=>{const nt=()=>{if(P.isMounted){let{next:gt,bu:ft,u:_t,parent:xt,vnode:Bt}=P,qt=gt,Nt;ar(P,!1),gt?(gt.el=Bt.el,E(P,gt,ot)):gt=Bt,ft&&Aa(ft),(Nt=gt.props&&gt.props.onVnodeBeforeUpdate)&&Qn(Nt,xt,gt,Bt),ar(P,!0);const ge=Hu(P),qe=P.subTree;P.subTree=ge,b(qe,ge,g(qe.el),nn(qe),P,q,tt),gt.el=ge.el,qt===null&&QP(P,ge.el),_t&&fn(_t,q),(Nt=gt.props&&gt.props.onVnodeUpdated)&&fn(()=>Qn(Nt,xt,gt,Bt),q)}else{let gt;const{el:ft,props:_t}=T,{bm:xt,m:Bt,parent:qt}=P,Nt=Us(T);if(ar(P,!1),xt&&Aa(xt),!Nt&&(gt=_t&&_t.onVnodeBeforeMount)&&Qn(gt,qt,T),ar(P,!0),ft&&rn){const ge=()=>{P.subTree=Hu(P),rn(ft,P.subTree,P,q,null)};Nt?T.type.__asyncLoader().then(()=>!P.isUnmounted&&ge()):ge()}else{const ge=P.subTree=Hu(P);b(null,ge,z,Y,P,q,tt),T.el=ge.el}if(Bt&&fn(Bt,q),!Nt&&(gt=_t&&_t.onVnodeMounted)){const ge=T;fn(()=>Qn(gt,qt,ge),q)}(T.shapeFlag&256||qt&&Us(qt.vnode)&&qt.vnode.shapeFlag&256)&&P.a&&fn(P.a,q),P.isMounted=!0,T=z=Y=null}},et=P.effect=new Rc(nt,()=>jc(X),P.scope),X=P.update=()=>et.run();X.id=P.uid,ar(P,!0),X()},E=(P,T,z)=>{T.component=P;const Y=P.vnode.props;P.vnode=T,P.next=null,wM(P,T.props,Y,z),PM(P,T.children,z),fs(),ip(),hs()},B=(P,T,z,Y,q,tt,ot,nt,et=!1)=>{const X=P&&P.children,gt=P?P.shapeFlag:0,ft=T.children,{patchFlag:_t,shapeFlag:xt}=T;if(_t>0){if(_t&128){at(X,ft,z,Y,q,tt,ot,nt,et);return}else if(_t&256){Z(X,ft,z,Y,q,tt,ot,nt,et);return}}xt&8?(gt&16&&re(X,q,tt),ft!==X&&d(z,ft)):gt&16?xt&16?at(X,ft,z,Y,q,tt,ot,nt,et):re(X,q,tt,!0):(gt&8&&d(z,""),xt&16&&N(ft,z,Y,q,tt,ot,nt,et))},Z=(P,T,z,Y,q,tt,ot,nt,et)=>{P=P||qr,T=T||qr;const X=P.length,gt=T.length,ft=Math.min(X,gt);let _t;for(_t=0;_t<ft;_t++){const xt=T[_t]=et?Hi(T[_t]):ii(T[_t]);b(P[_t],xt,z,null,q,tt,ot,nt,et)}X>gt?re(P,q,tt,!0,!1,ft):N(T,z,Y,q,tt,ot,nt,et,ft)},at=(P,T,z,Y,q,tt,ot,nt,et)=>{let X=0;const gt=T.length;let ft=P.length-1,_t=gt-1;for(;X<=ft&&X<=_t;){const xt=P[X],Bt=T[X]=et?Hi(T[X]):ii(T[X]);if(gr(xt,Bt))b(xt,Bt,z,null,q,tt,ot,nt,et);else break;X++}for(;X<=ft&&X<=_t;){const xt=P[ft],Bt=T[_t]=et?Hi(T[_t]):ii(T[_t]);if(gr(xt,Bt))b(xt,Bt,z,null,q,tt,ot,nt,et);else break;ft--,_t--}if(X>ft){if(X<=_t){const xt=_t+1,Bt=xt<gt?T[xt].el:Y;for(;X<=_t;)b(null,T[X]=et?Hi(T[X]):ii(T[X]),z,Bt,q,tt,ot,nt,et),X++}}else if(X>_t)for(;X<=ft;)mt(P[X],q,tt,!0),X++;else{const xt=X,Bt=X,qt=new Map;for(X=Bt;X<=_t;X++){const ke=T[X]=et?Hi(T[X]):ii(T[X]);ke.key!=null&&qt.set(ke.key,X)}let Nt,ge=0;const qe=_t-Bt+1;let qn=!1,Er=0;const fi=new Array(qe);for(X=0;X<qe;X++)fi[X]=0;for(X=xt;X<=ft;X++){const ke=P[X];if(ge>=qe){mt(ke,q,tt,!0);continue}let sn;if(ke.key!=null)sn=qt.get(ke.key);else for(Nt=Bt;Nt<=_t;Nt++)if(fi[Nt-Bt]===0&&gr(ke,T[Nt])){sn=Nt;break}sn===void 0?mt(ke,q,tt,!0):(fi[sn-Bt]=X+1,sn>=Er?Er=sn:qn=!0,b(ke,T[sn],z,null,q,tt,ot,nt,et),ge++)}const Ir=qn?EM(fi):qr;for(Nt=Ir.length-1,X=qe-1;X>=0;X--){const ke=Bt+X,sn=T[ke],Dr=ke+1<gt?T[ke+1].el:Y;fi[X]===0?b(null,sn,z,Dr,q,tt,ot,nt,et):qn&&(Nt<0||X!==Ir[Nt]?ht(sn,z,Dr,2):Nt--)}}},ht=(P,T,z,Y,q=null)=>{const{el:tt,type:ot,transition:nt,children:et,shapeFlag:X}=P;if(X&6){ht(P.component.subTree,T,z,Y);return}if(X&128){P.suspense.move(T,z,Y);return}if(X&64){ot.move(P,T,z,te);return}if(ot===de){i(tt,T,z);for(let ft=0;ft<et.length;ft++)ht(et[ft],T,z,Y);i(P.anchor,T,z);return}if(ot===Wu){A(P,T,z);return}if(Y!==2&&X&1&&nt)if(Y===0)nt.beforeEnter(tt),i(tt,T,z),fn(()=>nt.enter(tt),q);else{const{leave:ft,delayLeave:_t,afterLeave:xt}=nt,Bt=()=>i(tt,T,z),qt=()=>{ft(tt,()=>{Bt(),xt&&xt()})};_t?_t(tt,Bt,qt):qt()}else i(tt,T,z)},mt=(P,T,z,Y=!1,q=!1)=>{const{type:tt,props:ot,ref:nt,children:et,dynamicChildren:X,shapeFlag:gt,patchFlag:ft,dirs:_t}=P;if(nt!=null&&hc(nt,null,z,P,!0),gt&256){T.ctx.deactivate(P);return}const xt=gt&1&&_t,Bt=!Us(P);let qt;if(Bt&&(qt=ot&&ot.onVnodeBeforeUnmount)&&Qn(qt,T,P),gt&6)oe(P.component,z,Y);else{if(gt&128){P.suspense.unmount(z,Y);return}xt&&or(P,null,T,"beforeUnmount"),gt&64?P.type.remove(P,T,z,q,te,Y):X&&(tt!==de||ft>0&&ft&64)?re(X,T,z,!1,!0):(tt===de&&ft&384||!q&&gt&16)&&re(et,T,z),Y&&jt(P)}(Bt&&(qt=ot&&ot.onVnodeUnmounted)||xt)&&fn(()=>{qt&&Qn(qt,T,P),xt&&or(P,null,T,"unmounted")},z)},jt=P=>{const{type:T,el:z,anchor:Y,transition:q}=P;if(T===de){pe(z,Y);return}if(T===Wu){k(P);return}const tt=()=>{r(z),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(P.shapeFlag&1&&q&&!q.persisted){const{leave:ot,delayLeave:nt}=q,et=()=>ot(z,tt);nt?nt(P.el,tt,et):et()}else tt()},pe=(P,T)=>{let z;for(;P!==T;)z=_(P),r(P),P=z;r(T)},oe=(P,T,z)=>{const{bum:Y,scope:q,update:tt,subTree:ot,um:nt}=P;Y&&Aa(Y),q.stop(),tt&&(tt.active=!1,mt(ot,P,T,z)),nt&&fn(nt,T),fn(()=>{P.isUnmounted=!0},T),T&&T.pendingBranch&&!T.isUnmounted&&P.asyncDep&&!P.asyncResolved&&P.suspenseId===T.pendingId&&(T.deps--,T.deps===0&&T.resolve())},re=(P,T,z,Y=!1,q=!1,tt=0)=>{for(let ot=tt;ot<P.length;ot++)mt(P[ot],T,z,Y,q)},nn=P=>P.shapeFlag&6?nn(P.component.subTree):P.shapeFlag&128?P.suspense.next():_(P.anchor||P.el),Re=(P,T,z)=>{P==null?T._vnode&&mt(T._vnode,null,null,!0):b(T._vnode||null,P,T,null,null,null,z),ip(),Sm(),T._vnode=P},te={p:b,um:mt,m:ht,r:jt,mt:rt,mc:N,pc:B,pbc:it,n:nn,o:e};let ze,rn;return t&&([ze,rn]=t(te)),{render:Re,hydrate:ze,createApp:CM(Re,ze)}}function ar({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Vm(e,t,n=!1){const i=e.children,r=t.children;if(yt(i)&&yt(r))for(let o=0;o<i.length;o++){const l=i[o];let u=r[o];u.shapeFlag&1&&!u.dynamicChildren&&((u.patchFlag<=0||u.patchFlag===32)&&(u=r[o]=Hi(r[o]),u.el=l.el),n||Vm(l,u)),u.type===ml&&(u.el=l.el)}}function EM(e){const t=e.slice(),n=[0];let i,r,o,l,u;const c=e.length;for(i=0;i<c;i++){const h=e[i];if(h!==0){if(r=n[n.length-1],e[r]<h){t[i]=r,n.push(i);continue}for(o=0,l=n.length-1;o<l;)u=o+l>>1,e[n[u]]<h?o=u+1:l=u;h<e[n[o]]&&(o>0&&(t[i]=n[o-1]),n[o]=i)}}for(o=n.length,l=n[o-1];o-- >0;)n[o]=l,l=t[l];return n}const IM=e=>e.__isTeleport,de=Symbol(void 0),ml=Symbol(void 0),Fn=Symbol(void 0),Wu=Symbol(void 0),js=[];let jn=null;function St(e=!1){js.push(jn=e?null:[])}function DM(){js.pop(),jn=js[js.length-1]||null}let to=1;function hp(e){to+=e}function jm(e){return e.dynamicChildren=to>0?jn||qr:null,DM(),to>0&&jn&&jn.push(e),e}function Ft(e,t,n,i,r,o){return jm(Q(e,t,n,i,r,o,!0))}function Vn(e,t,n,i,r){return jm(Vt(e,t,n,i,r,!0))}function za(e){return e?e.__v_isVNode===!0:!1}function gr(e,t){return e.type===t.type&&e.key===t.key}const vl="__vInternal",Ym=({key:e})=>e!=null?e:null,Ta=({ref:e,ref_key:t,ref_for:n})=>e!=null?De(e)||we(e)||$t(e)?{i:je,r:e,k:t,f:!!n}:e:null;function Q(e,t=null,n=null,i=0,r=null,o=e===de?0:1,l=!1,u=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ym(t),ref:t&&Ta(t),scopeId:hl,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:je};return u?(Gc(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=De(n)?8:16),to>0&&!l&&jn&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&jn.push(c),c}const Vt=LM;function LM(e,t=null,n=null,i=0,r=null,o=!1){if((!e||e===pM)&&(e=Fn),za(e)){const u=Xi(e,t,!0);return n&&Gc(u,n),to>0&&!o&&jn&&(u.shapeFlag&6?jn[jn.indexOf(e)]=u:jn.push(u)),u.patchFlag|=-2,u}if(WM(e)&&(e=e.__vccOpts),t){t=$M(t);let{class:u,style:c}=t;u&&!De(u)&&(t.class=Sr(u)),ue(c)&&(Ws(c)&&!yt(c)&&(c=Ke({},c)),t.style=is(c))}const l=De(e)?1:tM(e)?128:IM(e)?64:ue(e)?4:$t(e)?2:0;return Q(e,t,n,i,r,l,o,!0)}function $M(e){return e?Ws(e)||vl in e?Ke({},e):e:null}function Xi(e,t,n=!1){const{props:i,ref:r,patchFlag:o,children:l}=e,u=t?RM(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Ym(u),ref:t&&t.ref?n&&r?yt(r)?r.concat(Ta(t)):[r,Ta(t)]:Ta(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==de?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Xi(e.ssContent),ssFallback:e.ssFallback&&Xi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function Mi(e=" ",t=0){return Vt(ml,null,e,t)}function Pr(e="",t=!1){return t?(St(),Vn(Fn,null,e)):Vt(Fn,null,e)}function ii(e){return e==null||typeof e=="boolean"?Vt(Fn):yt(e)?Vt(de,null,e.slice()):typeof e=="object"?Hi(e):Vt(ml,null,String(e))}function Hi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Xi(e)}function Gc(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(yt(t))n=16;else if(typeof t=="object")if(i&65){const r=t.default;r&&(r._c&&(r._d=!1),Gc(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(vl in t)?t._ctx=je:r===3&&je&&(je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else $t(t)?(t={default:t,_ctx:je},n=32):(t=String(t),i&64?(n=16,t=[Mi(t)]):n=8);e.children=t,e.shapeFlag|=n}function RM(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const r in i)if(r==="class")t.class!==i.class&&(t.class=Sr([t.class,i.class]));else if(r==="style")t.style=is([t.style,i.style]);else if(al(r)){const o=t[r],l=i[r];l&&o!==l&&!(yt(o)&&o.includes(l))&&(t[r]=o?[].concat(o,l):l)}else r!==""&&(t[r]=i[r])}return t}function Qn(e,t,n,i=null){kn(e,t,7,[n,i])}const kM=Um();let FM=0;function BM(e,t,n){const i=e.type,r=(t?t.appContext:e.appContext)||kM,o={uid:FM++,vnode:e,type:i,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new uP(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Hm(i,r),emitsOptions:Mm(i,r),emit:null,emitted:null,propsDefaults:he,inheritAttrs:i.inheritAttrs,ctx:he,data:he,props:he,attrs:he,slots:he,refs:he,setupState:he,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=qP.bind(null,o),e.ce&&e.ce(o),o}let He=null;const Jc=()=>He||je,os=e=>{He=e,e.scope.on()},xr=()=>{He&&He.scope.off(),He=null};function Km(e){return e.vnode.shapeFlag&4}let eo=!1;function HM(e,t=!1){eo=t;const{props:n,children:i}=e.vnode,r=Km(e);xM(e,n,r,t),SM(e,i);const o=r?zM(e,t):void 0;return eo=!1,o}function zM(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=gm(new Proxy(e.ctx,gM));const{setup:i}=n;if(i){const r=e.setupContext=i.length>1?qm(e):null;os(e),fs();const o=Vi(i,e,0,[e.props,r]);if(hs(),xr(),em(o)){if(o.then(xr,xr),t)return o.then(l=>{dp(e,l,t)}).catch(l=>{cl(l,e,0)});e.asyncDep=o}else dp(e,o,t)}else Xm(e,t)}function dp(e,t,n){$t(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ue(t)&&(e.setupState=mm(t)),Xm(e,n)}let pp;function Xm(e,t,n){const i=e.type;if(!e.render){if(!t&&pp&&!i.render){const r=i.template||Xc(e).template;if(r){const{isCustomElement:o,compilerOptions:l}=e.appContext.config,{delimiters:u,compilerOptions:c}=i,h=Ke(Ke({isCustomElement:o,delimiters:u},l),c);i.render=pp(r,h)}}e.render=i.render||Yn}os(e),fs(),_M(e),hs(),xr()}function NM(e){return new Proxy(e.attrs,{get(t,n){return Sn(e,"get","$attrs"),t[n]}})}function qm(e){const t=i=>{e.exposed=i||{}};let n;return{get attrs(){return n||(n=NM(e))},slots:e.slots,emit:e.emit,expose:t}}function bl(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(mm(gm(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Vs)return Vs[n](e)},has(t,n){return n in t||n in Vs}}))}function WM(e){return $t(e)&&"__vccOpts"in e}const At=(e,t)=>Fa(e,t,eo);function yl(){return UM().slots}function UM(){const e=Jc();return e.setupContext||(e.setupContext=qm(e))}function Ye(e,t,n){const i=arguments.length;return i===2?ue(t)&&!yt(t)?za(t)?Vt(e,null,[t]):Vt(e,t):Vt(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&za(n)&&(n=[n]),Vt(e,t,n))}const VM=Symbol(""),jM=()=>yr(VM),YM="3.2.45",KM="http://www.w3.org/2000/svg",_r=typeof document<"u"?document:null,gp=_r&&_r.createElement("template"),XM={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const r=t?_r.createElementNS(KM,e):_r.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:e=>_r.createTextNode(e),createComment:e=>_r.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>_r.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,r,o){const l=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{gp.innerHTML=i?` + "`" + `<svg>${e}</svg>` + "`" + `:e;const u=gp.content;if(i){const c=u.firstChild;for(;c.firstChild;)u.appendChild(c.firstChild);u.removeChild(c)}t.insertBefore(u,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function qM(e,t,n){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function GM(e,t,n){const i=e.style,r=De(n);if(n&&!r){for(const o in n)dc(i,o,n[o]);if(t&&!De(t))for(const o in t)n[o]==null&&dc(i,o,"")}else{const o=i.display;r?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=o)}}const _p=/\s*!important$/;function dc(e,t,n){if(yt(n))n.forEach(i=>dc(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=JM(e,t);_p.test(n)?e.setProperty(cs(i),n.replace(_p,""),"important"):e[i]=n}}const mp=["Webkit","Moz","ms"],Uu={};function JM(e,t){const n=Uu[t];if(n)return n;let i=rs(t);if(i!=="filter"&&i in e)return Uu[t]=i;i=rm(i);for(let r=0;r<mp.length;r++){const o=mp[r]+i;if(o in e)return Uu[t]=o}return t}const vp="http://www.w3.org/1999/xlink";function ZM(e,t,n,i,r){if(i&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(vp,t.slice(6,t.length)):e.setAttributeNS(vp,t,n);else{const o=tP(t);n==null||o&&!Q_(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function QM(e,t,n,i,r,o,l){if(t==="innerHTML"||t==="textContent"){i&&l(i,r,o),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const c=n==null?"":n;(e.value!==c||e.tagName==="OPTION")&&(e.value=c),n==null&&e.removeAttribute(t);return}let u=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Q_(n):n==null&&c==="string"?(n="",u=!0):c==="number"&&(n=0,u=!0)}try{e[t]=n}catch{}u&&e.removeAttribute(t)}function Zc(e,t,n,i){e.addEventListener(t,n,i)}function t2(e,t,n,i){e.removeEventListener(t,n,i)}function e2(e,t,n,i,r=null){const o=e._vei||(e._vei={}),l=o[t];if(i&&l)l.value=i;else{const[u,c]=n2(t);if(i){const h=o[t]=s2(i,r);Zc(e,u,h,c)}else l&&(t2(e,u,l,c),o[t]=void 0)}}const bp=/(?:Once|Passive|Capture)$/;function n2(e){let t;if(bp.test(e)){t={};let i;for(;i=e.match(bp);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):cs(e.slice(2)),t]}let Vu=0;const i2=Promise.resolve(),r2=()=>Vu||(i2.then(()=>Vu=0),Vu=Date.now());function s2(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;kn(o2(i,n.value),t,5,[i])};return n.value=e,n.attached=r2(),n}function o2(e,t){if(yt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>r=>!r._stopped&&i&&i(r))}else return t}const yp=/^on[a-z]/,a2=(e,t,n,i,r=!1,o,l,u,c)=>{t==="class"?qM(e,i,r):t==="style"?GM(e,n,i):al(t)?Ec(t)||e2(e,t,n,i,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):l2(e,t,i,r))?QM(e,t,i,o,l,u,c):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),ZM(e,t,i,r))};function l2(e,t,n,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&yp.test(t)&&$t(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||yp.test(t)&&De(n)?!1:t in e}const u2={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};sM.props;const Na=e=>{const t=e.props["onUpdate:modelValue"]||!1;return yt(t)?n=>Aa(t,n):t},c2={deep:!0,created(e,t,n){e._assign=Na(n),Zc(e,"change",()=>{const i=e._modelValue,r=no(e),o=e.checked,l=e._assign;if(yt(i)){const u=Tc(i,r),c=u!==-1;if(o&&!c)l(i.concat(r));else if(!o&&c){const h=[...i];h.splice(u,1),l(h)}}else if(us(i)){const u=new Set(i);o?u.add(r):u.delete(r),l(u)}else l(Gm(e,o))})},mounted:xp,beforeUpdate(e,t,n){e._assign=Na(n),xp(e,t,n)}};function xp(e,{value:t,oldValue:n},i){e._modelValue=t,yt(t)?e.checked=Tc(t,i.props.value)>-1:us(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=lo(t,Gm(e,!0)))}const ju={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const r=us(t);Zc(e,"change",()=>{const o=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Lc(no(l)):no(l));e._assign(e.multiple?r?new Set(o):o:o[0])}),e._assign=Na(i)},mounted(e,{value:t}){wp(e,t)},beforeUpdate(e,t,n){e._assign=Na(n)},updated(e,{value:t}){wp(e,t)}};function wp(e,t){const n=e.multiple;if(!(n&&!yt(t)&&!us(t))){for(let i=0,r=e.options.length;i<r;i++){const o=e.options[i],l=no(o);if(n)yt(t)?o.selected=Tc(t,l)>-1:o.selected=t.has(l);else if(lo(no(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function no(e){return"_value"in e?e._value:e.value}function Gm(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const f2={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Es(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),Es(e,!0),i.enter(e)):i.leave(e,()=>{Es(e,!1)}):Es(e,t))},beforeUnmount(e,{value:t}){Es(e,t)}};function Es(e,t){e.style.display=t?e._vod:"none"}const h2=Ke({patchProp:a2},XM);let Op;function d2(){return Op||(Op=AM(h2))}const p2=(...e)=>{const t=d2().createApp(...e),{mount:n}=t;return t.mount=i=>{const r=g2(i);if(!r)return;const o=t._component;!$t(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const l=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t};function g2(e){return De(e)?document.querySelector(e):e}const ui=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n},_2={class:"tabs-wrapper"},m2={class:"tabs-labels"},v2=["onClick"],b2={class:"contents"},y2={__name:"tabs",props:{modelValue:String},emits:["input"],setup(e,{emit:t}){const n=e,i=Ct({selectedIndex:null,count:0});dl("tabsProvider",i);const r=yl(),o=At(()=>r.default().map(u=>u.props).filter(u=>!!u));function l(u){t("input",u)}return Mt(()=>n.modelValue,u=>{i.selectedIndex=u}),(u,c)=>(St(),Ft("div",_2,[Q("ul",m2,[(St(!0),Ft(de,null,ji(Yt(o),(h,d)=>(St(),Ft("li",{key:(h==null?void 0:h.name)||d,onClick:g=>l(h.name),class:Sr({active:i.selectedIndex==((h==null?void 0:h.name)||d)})},ne(h==null?void 0:h.label),11,v2))),128))]),Q("div",b2,[oi(u.$slots,"default",{},void 0,!0)])]))}},x2=ui(y2,[["__scopeId","data-v-aca1330d"]]);const w2={class:"tab-detail"},O2={__name:"tab-item",props:{label:String,name:String},emits:["shown"],setup(e,{emit:t}){const n=e,i=yr("tabsProvider"),r=R(!1);return Mt(()=>i.selectedIndex,()=>{r.value=n.name===i.selectedIndex,r.value&&t("shown")}),_l(()=>{i.selectedIndex==null&&(i.selectedIndex=n.name),i.selectedIndex==n.name&&(r.value=!0)}),(o,l)=>Qr((St(),Ft("div",w2,[oi(o.$slots,"default",{},void 0,!0)],512)),[[f2,Yt(r)]])}},Yu=ui(O2,[["__scopeId","data-v-ffa761d9"]]);const S2={class:"items"},P2={__name:"items",props:{labelWidth:Number,columns:{type:Number,default:1}},setup(e){return dl("items",e),(n,i)=>(St(),Ft("div",S2,[oi(n.$slots,"default",{},void 0,!0)]))}},Jm=ui(P2,[["__scopeId","data-v-8d0892c0"]]);const M2={__name:"item",props:{label:String,columns:{type:Number,default:1}},setup(e){const t=e,n=yr("items"),i=Fa(()=>n.labelWidth?{width:n.labelWidth+"px"}:{}),r=Fa(()=>{var o=Math.floor(100/n.columns*t.columns);return{width:o+"%"}});return(o,l)=>(St(),Ft("div",{style:is(Yt(r))},[Q("div",{style:is(Yt(i)),class:"label"},ne(e.label),5),oi(o.$slots,"default",{},void 0,!0)],4))}},ts=ui(M2,[["__scopeId","data-v-65b10140"]]);const C2={style:{"user-select":"none"}},A2=Q("span",null,"\u6BCF\u9875",-1),T2=["value"],E2=Q("option",{value:"10"},"10",-1),I2=Q("option",{value:"20"},"20",-1),D2=Q("option",{value:"50"},"50",-1),L2=[E2,I2,D2],$2=Q("span",null,"\u6761",-1),R2=["disabled"],k2={key:0,class:"btn"},F2=["onClick","current"],B2=["disabled"],Zm={__name:"pagination",props:{totalPages:Number,total:Number,current:{type:Number,default:1},pageSize:{type:Number,default:20},sizeAround:{type:Number,default:2},noPageSizeSelector:Boolean},emits:["goto","change-page-size"],setup(e,{emit:t}){const n=e,i=R([]),r=R(1);Mt(()=>n.totalPages,()=>{i.value=o()},{immediate:!0}),Mt(()=>n.total,()=>{i.value=o()},{immediate:!0}),Mt(()=>n.current,()=>{i.value=o()},{immediate:!0}),Mt(()=>n.pageSize,()=>{i.value=o()},{immediate:!0});function o(){var m,x;var d=Math.floor(n.total/n.pageSize);if(n.totalPages>0)r.value=n.totalPages;else if(n.total)r.value=n.total/n.pageSize-d>0?d+1:d;else return[{text:"\u672A\u4F20\u5165\u603B\u6570",notPage:!0}];var g=[],_=0;for(let b=0;b<Math.min(r.value,n.sizeAround);b++)g.push({text:b+1});n.current-n.sizeAround>n.sizeAround+1&&g.push({text:"...",notPage:!0});for(let b=Math.max(n.sizeAround+1,n.current-n.sizeAround);b<=n.current+n.sizeAround;b++)b<=r.value&&g.push({text:b});n.current<r.value-n.sizeAround*2&&g.push({text:"...",notPage:!0});var _;g[g.length-1].notPage?_=(m=g[g.length-2])==null?void 0:m.text:_=(x=g[g.length-1])==null?void 0:x.text;for(let b=Math.max(_+1,r.value-n.sizeAround+1);b<=r.value;b++)g.push({text:b});return g}function l(d){t("goto",d)}function u(d){console.log(d.target.value),t("change-page-size",d.target.value)}function c(d){var g=d.target.getAttribute("disabled");(g==null||g=="false")&&t("goto",n.current-1)}function h(d){var g=d.target.getAttribute("disabled");(g==null||g=="false")&&t("goto",n.current+1)}return(d,g)=>(St(),Ft("div",C2,[e.noPageSizeSelector?Pr("",!0):(St(),Ft(de,{key:0},[A2,Q("select",{name:"count_per_page",value:e.pageSize,onChange:u},L2,40,T2),$2],64)),Q("span",{class:"btn",disabled:e.current==1,onClick:c},"<",8,R2),(St(!0),Ft(de,null,ji(i.value,_=>(St(),Ft(de,{key:_},[_.notPage?(St(),Ft("span",k2,ne(_.text),1)):(St(),Ft("span",{key:1,onClick:m=>l(_.text),class:"btn",current:e.current==_.text},ne(_.text),9,F2))],64))),128)),Q("span",{class:"btn",disabled:e.current>=r.value,onClick:h},">",8,B2)]))}};const H2={class:"flex end footer"},z2={__name:"pageul",props:{pageSize:{type:Number,default:20}},setup(e,{expose:t}){const n=e;yl();const i=Ct({selectedIndex:null,currentPage:1,pageSize:n.pageSize,total:0}),r=R(null),o=R(null);R(0);const l=R(56),u=R(null),c=R([{index:0,height:0}]),h=At(()=>c.value.length);dl("ul",i),$m(d);function d(){if(r.value&&o.value&&c.value.length<=1){var b=c.value[0];do b=g(b),c.value.push(b);while(b)}}function g(b){for(var O=!1,C=o.value.clientHeight,L=r.value.children[b.index].clientHeight,A=b.index+Math.floor(C/L),k=b.height;!O;){var $=r.value.children[A],U=r.value.children[A-1];if($==null)return null;if($.offsetTop-k>=C&&U.offsetTop-k<C)return{index:A,height:$.offsetTop};var F=Math.floor((k-$.offsetTop+C)/$.clientHeight);F==0&&(F=1),A+=F}}function _(b){r.value.style.transform=` + "`" + `translateY(-${b}px)` + "`" + `}function m(){}function x(b){i.currentPage=b,_(c.value[b-1].height)}return t({update:m}),(b,O)=>(St(),Ft("div",{style:{height:"100%"},ref_key:"root",ref:u},[Q("div",{class:"wrapper",ref_key:"wrapper",ref:o,style:is(` + "`" + `height: calc(100% - ${l.value}px);` + "`" + `)},[Q("ul",{ref_key:"container",ref:r},[oi(b.$slots,"default",{},void 0,!0)],512)],4),Q("div",H2,[Vt(Zm,{"total-pages":Yt(h),"size-around":1,onGoto:x,current:i.currentPage,"no-page-size-selector":""},null,8,["total-pages","current"])])],512))}},N2=ui(z2,[["__scopeId","data-v-8bdf169f"]]),W2={__name:"pageli",setup(e){const t=yr("ul"),n=R(0);return _l(()=>{n.value=t.total,t.total++}),(i,r)=>(St(),Ft("li",null,[oi(i.$slots,"default")]))}};var mr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},U2={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(mr,function(){var n="__v-click-outside",i=typeof window<"u",r=typeof navigator<"u",o=i&&("ontouchstart"in window||r&&navigator.msMaxTouchPoints>0)?["touchstart"]:["click"];function l(d){var g=d.event,_=d.handler;(0,d.middleware)(g)&&_(g)}function u(d,g){var _=function(L){var A=typeof L=="function";if(!A&&typeof L!="object")throw new Error("v-click-outside: Binding value must be a function or an object");return{handler:A?L:L.handler,middleware:L.middleware||function(k){return k},events:L.events||o,isActive:L.isActive!==!1,detectIframe:L.detectIframe!==!1,capture:!!L.capture}}(g.value),m=_.handler,x=_.middleware,b=_.detectIframe,O=_.capture;if(_.isActive){if(d[n]=_.events.map(function(L){return{event:L,srcTarget:document.documentElement,handler:function(A){return function(k){var $=k.el,U=k.event,F=k.handler,N=k.middleware,J=U.composedPath&&U.composedPath()||U.path;(J?J.indexOf($)<0:!$.contains(U.target))&&l({event:U,handler:F,middleware:N})}({el:d,event:A,handler:m,middleware:x})},capture:O}}),b){var C={event:"blur",srcTarget:window,handler:function(L){return function(A){var k=A.el,$=A.event,U=A.handler,F=A.middleware;setTimeout(function(){var N=document.activeElement;N&&N.tagName==="IFRAME"&&!k.contains(N)&&l({event:$,handler:U,middleware:F})},0)}({el:d,event:L,handler:m,middleware:x})},capture:O};d[n]=[].concat(d[n],[C])}d[n].forEach(function(L){var A=L.event,k=L.srcTarget,$=L.handler;return setTimeout(function(){d[n]&&k.addEventListener(A,$,O)},0)})}}function c(d){(d[n]||[]).forEach(function(g){return g.srcTarget.removeEventListener(g.event,g.handler,g.capture)}),delete d[n]}var h=i?{bind:u,update:function(d,g){var _=g.value,m=g.oldValue;JSON.stringify(_)!==JSON.stringify(m)&&(c(d),u(d,{value:_}))},unbind:c}:{};return{install:function(d){d.directive("click-outside",h)},directive:h}})})(U2);const V2={class:"panel"},j2={key:0,class:"flex between"},Y2={class:"title"},K2={class:"inline",style:{"margin-right":"16px"}},X2={key:1},q2={__name:"panel",props:{label:String,overflowHidden:{type:Boolean,default:!1}},setup(e){const t=yl();return(n,i)=>(St(),Ft("div",V2,[Yt(t).toolbar?(St(),Ft("header",j2,[Q("span",Y2,ne(e.label),1),Q("div",K2,[oi(n.$slots,"toolbar",{},void 0,!0)])])):(St(),Ft("header",X2,ne(e.label),1)),Q("div",{class:Sr(["panel-body",{"overflow-hidden":e.overflowHidden}])},[oi(n.$slots,"default",{},void 0,!0)],2)]))}},pc=ui(q2,[["__scopeId","data-v-c9d72711"]]);/*!
 * Chart.js v4.0.1
 * https://www.chartjs.org
 * (c) 2022 Chart.js Contributors
 * Released under the MIT License
 */function xi(){}const G2=(()=>{let e=0;return()=>e++})();function me(e){return e===null||typeof e>"u"}function be(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Gt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function $e(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function yn(e,t){return $e(e)?e:t}function Zt(e,t){return typeof e>"u"?t:e}const J2=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,Qm=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function le(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function ie(e,t,n,i){let r,o,l;if(be(e))if(o=e.length,i)for(r=o-1;r>=0;r--)t.call(n,e[r],r);else for(r=0;r<o;r++)t.call(n,e[r],r);else if(Gt(e))for(l=Object.keys(e),o=l.length,r=0;r<o;r++)t.call(n,e[l[r]],l[r])}function Wa(e,t){let n,i,r,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(r=e[n],o=t[n],r.datasetIndex!==o.datasetIndex||r.index!==o.index)return!1;return!0}function Ua(e){if(be(e))return e.map(Ua);if(Gt(e)){const t=Object.create(null),n=Object.keys(e),i=n.length;let r=0;for(;r<i;++r)t[n[r]]=Ua(e[n[r]]);return t}return e}function tv(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function Z2(e,t,n,i){if(!tv(e))return;const r=t[e],o=n[e];Gt(r)&&Gt(o)?io(r,o,i):t[e]=Ua(o)}function io(e,t,n){const i=be(t)?t:[t],r=i.length;if(!Gt(e))return e;n=n||{};const o=n.merger||Z2;let l;for(let u=0;u<r;++u){if(l=i[u],!Gt(l))continue;const c=Object.keys(l);for(let h=0,d=c.length;h<d;++h)o(c[h],e,l,n)}return e}function Ys(e,t){return io(e,t,{merger:Q2})}function Q2(e,t,n){if(!tv(e))return;const i=t[e],r=n[e];Gt(i)&&Gt(r)?Ys(i,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Ua(r))}const Sp={"":e=>e,x:e=>e.x,y:e=>e.y};function tC(e){const t=e.split("."),n=[];let i="";for(const r of t)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function eC(e){const t=tC(e);return n=>{for(const i of t){if(i==="")break;n=n&&n[i]}return n}}function ro(e,t){return(Sp[t]||(Sp[t]=eC(t)))(e)}function Qc(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Xn=e=>typeof e<"u",qi=e=>typeof e=="function",Pp=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function nC(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Ae=Math.PI,Oe=2*Ae,Va=Number.POSITIVE_INFINITY,iC=Ae/180,Se=Ae/2,lr=Ae/4,Mp=Ae*2/3,Ni=Math.log10,ja=Math.sign;function Ea(e,t,n){return Math.abs(e-t)<n}function Cp(e){const t=Math.round(e);e=Ea(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(Ni(e))),i=e/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function rC(e){const t=[],n=Math.sqrt(e);let i;for(i=1;i<n;i++)e%i===0&&(t.push(i),t.push(e/i));return n===(n|0)&&t.push(n),t.sort((r,o)=>r-o).pop(),t}function Ya(e){return!isNaN(parseFloat(e))&&isFinite(e)}function sC(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function ev(e,t,n){let i,r,o;for(i=0,r=e.length;i<r;i++)o=e[i][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function si(e){return e*(Ae/180)}function tf(e){return e*(180/Ae)}function Ap(e){if(!$e(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function nv(e,t){const n=t.x-e.x,i=t.y-e.y,r=Math.sqrt(n*n+i*i);let o=Math.atan2(i,n);return o<-.5*Ae&&(o+=Oe),{angle:o,distance:r}}function oC(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function ni(e){return(e%Oe+Oe)%Oe}function Ka(e,t,n,i){const r=ni(e),o=ni(t),l=ni(n),u=ni(o-r),c=ni(l-r),h=ni(r-o),d=ni(r-l);return r===o||r===l||i&&o===l||u>c&&h<d}function wn(e,t,n){return Math.max(t,Math.min(n,e))}function aC(e){return wn(e,-32768,32767)}function Fs(e,t,n,i=1e-6){return e>=Math.min(t,n)-i&&e<=Math.max(t,n)+i}function ef(e,t,n){n=n||(l=>e[l]<t);let i=e.length-1,r=0,o;for(;i-r>1;)o=r+i>>1,n(o)?r=o:i=o;return{lo:r,hi:i}}const gc=(e,t,n,i)=>ef(e,n,i?r=>{const o=e[r][t];return o<n||o===n&&e[r+1][t]===n}:r=>e[r][t]<n),lC=(e,t,n)=>ef(e,n,i=>e[i][t]>=n);function uC(e,t,n){let i=0,r=e.length;for(;i<r&&e[i]<t;)i++;for(;r>i&&e[r-1]>n;)r--;return i>0||r<e.length?e.slice(i,r):e}const iv=["push","pop","shift","splice","unshift"];function cC(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),iv.forEach(n=>{const i="_onData"+Qc(n),r=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const l=r.apply(this,o);return e._chartjs.listeners.forEach(u=>{typeof u[i]=="function"&&u[i](...o)}),l}})})}function Tp(e,t){const n=e._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(t);r!==-1&&i.splice(r,1),!(i.length>0)&&(iv.forEach(o=>{delete e[o]}),delete e._chartjs)}function fC(e){const t=new Set;let n,i;for(n=0,i=e.length;n<i;++n)t.add(e[n]);return t.size===i?e:Array.from(t)}const rv=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function sv(e,t){let n=!1;return function(...i){n||(n=!0,rv.call(window,()=>{n=!1,e.apply(t,i)}))}}function hC(e,t){let n;return function(...i){return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}const nf=e=>e==="start"?"left":e==="end"?"right":"center",Ue=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,dC=(e,t,n,i)=>e===(i?"left":"right")?n:e==="center"?(t+n)/2:t,ca=e=>e===0||e===1,Ep=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Oe/n)),Ip=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Oe/n)+1,Ia={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Se)+1,easeOutSine:e=>Math.sin(e*Se),easeInOutSine:e=>-.5*(Math.cos(Ae*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>ca(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>ca(e)?e:Ep(e,.075,.3),easeOutElastic:e=>ca(e)?e:Ip(e,.075,.3),easeInOutElastic(e){return ca(e)?e:e<.5?.5*Ep(e*2,.1125,.45):.5+.5*Ip(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Ia.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Ia.easeInBounce(e*2)*.5:Ia.easeOutBounce(e*2-1)*.5+.5};var Dp=Ia;/*!
 * @kurkle/color v0.2.1
 * https://github.com/kurkle/color#readme
 * (c) 2022 Jukka Kurkela
 * Released under the MIT License
 */function ho(e){return e+.5|0}const Wi=(e,t,n)=>Math.max(Math.min(e,n),t);function Bs(e){return Wi(ho(e*2.55),0,255)}function Yi(e){return Wi(ho(e*255),0,255)}function Pi(e){return Wi(ho(e/2.55)/100,0,1)}function Lp(e){return Wi(ho(e*100),0,100)}const $n={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},_c=[..."0123456789ABCDEF"],pC=e=>_c[e&15],gC=e=>_c[(e&240)>>4]+_c[e&15],fa=e=>(e&240)>>4===(e&15),_C=e=>fa(e.r)&&fa(e.g)&&fa(e.b)&&fa(e.a);function mC(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&$n[e[1]]*17,g:255&$n[e[2]]*17,b:255&$n[e[3]]*17,a:t===5?$n[e[4]]*17:255}:(t===7||t===9)&&(n={r:$n[e[1]]<<4|$n[e[2]],g:$n[e[3]]<<4|$n[e[4]],b:$n[e[5]]<<4|$n[e[6]],a:t===9?$n[e[7]]<<4|$n[e[8]]:255})),n}const vC=(e,t)=>e<255?t(e):"";function bC(e){var t=_C(e)?pC:gC;return e?"#"+t(e.r)+t(e.g)+t(e.b)+vC(e.a,t):void 0}const yC=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function ov(e,t,n){const i=t*Math.min(n,1-n),r=(o,l=(o+e/30)%12)=>n-i*Math.max(Math.min(l-3,9-l,1),-1);return[r(0),r(8),r(4)]}function xC(e,t,n){const i=(r,o=(r+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function wC(e,t,n){const i=ov(e,1,.5);let r;for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function OC(e,t,n,i,r){return e===r?(t-n)/i+(t<n?6:0):t===r?(n-e)/i+2:(e-t)/i+4}function rf(e){const n=e.r/255,i=e.g/255,r=e.b/255,o=Math.max(n,i,r),l=Math.min(n,i,r),u=(o+l)/2;let c,h,d;return o!==l&&(d=o-l,h=u>.5?d/(2-o-l):d/(o+l),c=OC(n,i,r,d,o),c=c*60+.5),[c|0,h||0,u]}function sf(e,t,n,i){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,i)).map(Yi)}function of(e,t,n){return sf(ov,e,t,n)}function SC(e,t,n){return sf(wC,e,t,n)}function PC(e,t,n){return sf(xC,e,t,n)}function av(e){return(e%360+360)%360}function MC(e){const t=yC.exec(e);let n=255,i;if(!t)return;t[5]!==i&&(n=t[6]?Bs(+t[5]):Yi(+t[5]));const r=av(+t[2]),o=+t[3]/100,l=+t[4]/100;return t[1]==="hwb"?i=SC(r,o,l):t[1]==="hsv"?i=PC(r,o,l):i=of(r,o,l),{r:i[0],g:i[1],b:i[2],a:n}}function CC(e,t){var n=rf(e);n[0]=av(n[0]+t),n=of(n),e.r=n[0],e.g=n[1],e.b=n[2]}function AC(e){if(!e)return;const t=rf(e),n=t[0],i=Lp(t[1]),r=Lp(t[2]);return e.a<255?` + "`" + `hsla(${n}, ${i}%, ${r}%, ${Pi(e.a)})` + "`" + `:` + "`" + `hsl(${n}, ${i}%, ${r}%)` + "`" + `}const $p={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Rp={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function TC(){const e={},t=Object.keys(Rp),n=Object.keys($p);let i,r,o,l,u;for(i=0;i<t.length;i++){for(l=u=t[i],r=0;r<n.length;r++)o=n[r],u=u.replace(o,$p[o]);o=parseInt(Rp[l],16),e[u]=[o>>16&255,o>>8&255,o&255]}return e}let ha;function EC(e){ha||(ha=TC(),ha.transparent=[0,0,0,0]);const t=ha[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const IC=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function DC(e){const t=IC.exec(e);let n=255,i,r,o;if(!!t){if(t[7]!==i){const l=+t[7];n=t[8]?Bs(l):Wi(l*255,0,255)}return i=+t[1],r=+t[3],o=+t[5],i=255&(t[2]?Bs(i):Wi(i,0,255)),r=255&(t[4]?Bs(r):Wi(r,0,255)),o=255&(t[6]?Bs(o):Wi(o,0,255)),{r:i,g:r,b:o,a:n}}}function LC(e){return e&&(e.a<255?` + "`" + `rgba(${e.r}, ${e.g}, ${e.b}, ${Pi(e.a)})` + "`" + `:` + "`" + `rgb(${e.r}, ${e.g}, ${e.b})` + "`" + `)}const Ku=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Kr=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function $C(e,t,n){const i=Kr(Pi(e.r)),r=Kr(Pi(e.g)),o=Kr(Pi(e.b));return{r:Yi(Ku(i+n*(Kr(Pi(t.r))-i))),g:Yi(Ku(r+n*(Kr(Pi(t.g))-r))),b:Yi(Ku(o+n*(Kr(Pi(t.b))-o))),a:e.a+n*(t.a-e.a)}}function da(e,t,n){if(e){let i=rf(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*n,t===0?360:1)),i=of(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function lv(e,t){return e&&Object.assign(t||{},e)}function kp(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Yi(e[3]))):(t=lv(e,{r:0,g:0,b:0,a:1}),t.a=Yi(t.a)),t}function RC(e){return e.charAt(0)==="r"?DC(e):MC(e)}class Xa{constructor(t){if(t instanceof Xa)return t;const n=typeof t;let i;n==="object"?i=kp(t):n==="string"&&(i=mC(t)||EC(t)||RC(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=lv(this._rgb);return t&&(t.a=Pi(t.a)),t}set rgb(t){this._rgb=kp(t)}rgbString(){return this._valid?LC(this._rgb):void 0}hexString(){return this._valid?bC(this._rgb):void 0}hslString(){return this._valid?AC(this._rgb):void 0}mix(t,n){if(t){const i=this.rgb,r=t.rgb;let o;const l=n===o?.5:n,u=2*l-1,c=i.a-r.a,h=((u*c===-1?u:(u+c)/(1+u*c))+1)/2;o=1-h,i.r=255&h*i.r+o*r.r+.5,i.g=255&h*i.g+o*r.g+.5,i.b=255&h*i.b+o*r.b+.5,i.a=l*i.a+(1-l)*r.a,this.rgb=i}return this}interpolate(t,n){return t&&(this._rgb=$C(this._rgb,t._rgb,n)),this}clone(){return new Xa(this.rgb)}alpha(t){return this._rgb.a=Yi(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=ho(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return da(this._rgb,2,t),this}darken(t){return da(this._rgb,2,-t),this}saturate(t){return da(this._rgb,1,t),this}desaturate(t){return da(this._rgb,1,-t),this}rotate(t){return CC(this._rgb,t),this}}function uv(e){return new Xa(e)}function cv(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Fp(e){return cv(e)?e:uv(e)}function Xu(e){return cv(e)?e:uv(e).saturate(.5).darken(.1).hexString()}const kC=["x","y","borderWidth","radius","tension"],FC=["color","borderColor","backgroundColor"];function BC(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:FC},numbers:{type:"number",properties:kC}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function HC(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Bp=new Map;function zC(e,t){t=t||{};const n=e+JSON.stringify(t);let i=Bp.get(n);return i||(i=new Intl.NumberFormat(e,t),Bp.set(n,i)),i}function xl(e,t,n){return zC(t,n).format(e)}const fv={values(e){return be(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const i=this.chart.options.locale;let r,o=e;if(n.length>1){const h=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(h<1e-4||h>1e15)&&(r="scientific"),o=NC(e,n)}const l=Ni(Math.abs(o)),u=Math.max(Math.min(-1*Math.floor(l),20),0),c={notation:r,minimumFractionDigits:u,maximumFractionDigits:u};return Object.assign(c,this.options.ticks.format),xl(e,i,c)},logarithmic(e,t,n){if(e===0)return"0";const i=n[t].significand||e/Math.pow(10,Math.floor(Ni(e)));return[1,2,3,5,10,15].includes(i)||t>.8*n.length?fv.numeric.call(this,e,t,n):""}};function NC(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var wl={formatters:fv};function WC(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:wl.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Mr=Object.create(null),mc=Object.create(null);function Ks(e,t){if(!t)return e;const n=t.split(".");for(let i=0,r=n.length;i<r;++i){const o=n[i];e=e[o]||(e[o]=Object.create(null))}return e}function qu(e,t,n){return typeof t=="string"?io(Ks(e,t),n):io(Ks(e,""),t)}class UC{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,r)=>Xu(r.backgroundColor),this.hoverBorderColor=(i,r)=>Xu(r.borderColor),this.hoverColor=(i,r)=>Xu(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return qu(this,t,n)}get(t){return Ks(this,t)}describe(t,n){return qu(mc,t,n)}override(t,n){return qu(Mr,t,n)}route(t,n,i,r){const o=Ks(this,t),l=Ks(this,i),u="_"+n;Object.defineProperties(o,{[u]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const c=this[u],h=l[r];return Gt(c)?Object.assign({},h,c):Zt(c,h)},set(c){this[u]=c}}})}apply(t){t.forEach(n=>n(this))}}var Ce=new UC({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[BC,HC,WC]);function VC(e){return!e||me(e.size)||me(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function qa(e,t,n,i,r){let o=t[r];return o||(o=t[r]=e.measureText(r).width,n.push(r)),o>i&&(i=o),i}function jC(e,t,n,i){i=i||{};let r=i.data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},o=i.garbageCollect=[],i.font=t),e.save(),e.font=t;let l=0;const u=n.length;let c,h,d,g,_;for(c=0;c<u;c++)if(g=n[c],g!=null&&be(g)!==!0)l=qa(e,r,o,l,g);else if(be(g))for(h=0,d=g.length;h<d;h++)_=g[h],_!=null&&!be(_)&&(l=qa(e,r,o,l,_));e.restore();const m=o.length/2;if(m>n.length){for(c=0;c<m;c++)delete r[o[c]];o.splice(0,m)}return l}function ur(e,t,n){const i=e.currentDevicePixelRatio,r=n!==0?Math.max(n/2,.5):0;return Math.round((t-r)*i)/i+r}function Hp(e,t){t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function zp(e,t,n,i){hv(e,t,n,i,null)}function hv(e,t,n,i,r){let o,l,u,c,h,d,g,_;const m=t.pointStyle,x=t.rotation,b=t.radius;let O=(x||0)*iC;if(m&&typeof m=="object"&&(o=m.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,i),e.rotate(O),e.drawImage(m,-m.width/2,-m.height/2,m.width,m.height),e.restore();return}if(!(isNaN(b)||b<=0)){switch(e.beginPath(),m){default:r?e.ellipse(n,i,r/2,b,0,0,Oe):e.arc(n,i,b,0,Oe),e.closePath();break;case"triangle":d=r?r/2:b,e.moveTo(n+Math.sin(O)*d,i-Math.cos(O)*b),O+=Mp,e.lineTo(n+Math.sin(O)*d,i-Math.cos(O)*b),O+=Mp,e.lineTo(n+Math.sin(O)*d,i-Math.cos(O)*b),e.closePath();break;case"rectRounded":h=b*.516,c=b-h,l=Math.cos(O+lr)*c,g=Math.cos(O+lr)*(r?r/2-h:c),u=Math.sin(O+lr)*c,_=Math.sin(O+lr)*(r?r/2-h:c),e.arc(n-g,i-u,h,O-Ae,O-Se),e.arc(n+_,i-l,h,O-Se,O),e.arc(n+g,i+u,h,O,O+Se),e.arc(n-_,i+l,h,O+Se,O+Ae),e.closePath();break;case"rect":if(!x){c=Math.SQRT1_2*b,d=r?r/2:c,e.rect(n-d,i-c,2*d,2*c);break}O+=lr;case"rectRot":g=Math.cos(O)*(r?r/2:b),l=Math.cos(O)*b,u=Math.sin(O)*b,_=Math.sin(O)*(r?r/2:b),e.moveTo(n-g,i-u),e.lineTo(n+_,i-l),e.lineTo(n+g,i+u),e.lineTo(n-_,i+l),e.closePath();break;case"crossRot":O+=lr;case"cross":g=Math.cos(O)*(r?r/2:b),l=Math.cos(O)*b,u=Math.sin(O)*b,_=Math.sin(O)*(r?r/2:b),e.moveTo(n-g,i-u),e.lineTo(n+g,i+u),e.moveTo(n+_,i-l),e.lineTo(n-_,i+l);break;case"star":g=Math.cos(O)*(r?r/2:b),l=Math.cos(O)*b,u=Math.sin(O)*b,_=Math.sin(O)*(r?r/2:b),e.moveTo(n-g,i-u),e.lineTo(n+g,i+u),e.moveTo(n+_,i-l),e.lineTo(n-_,i+l),O+=lr,g=Math.cos(O)*(r?r/2:b),l=Math.cos(O)*b,u=Math.sin(O)*b,_=Math.sin(O)*(r?r/2:b),e.moveTo(n-g,i-u),e.lineTo(n+g,i+u),e.moveTo(n+_,i-l),e.lineTo(n-_,i+l);break;case"line":l=r?r/2:Math.cos(O)*b,u=Math.sin(O)*b,e.moveTo(n-l,i-u),e.lineTo(n+l,i+u);break;case"dash":e.moveTo(n,i),e.lineTo(n+Math.cos(O)*(r?r/2:b),i+Math.sin(O)*b);break}e.fill(),t.borderWidth>0&&e.stroke()}}function dv(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function af(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function lf(e){e.restore()}function Cr(e,t,n,i,r,o={}){const l=be(t)?t:[t],u=o.strokeWidth>0&&o.strokeColor!=="";let c,h;for(e.save(),e.font=r.string,YC(e,o),c=0;c<l.length;++c)h=l[c],o.backdrop&&XC(e,o.backdrop),u&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),me(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(h,n,i,o.maxWidth)),e.fillText(h,n,i,o.maxWidth),KC(e,n,i,h,o),i+=r.lineHeight;e.restore()}function YC(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),me(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function KC(e,t,n,i,r){if(r.strikethrough||r.underline){const o=e.measureText(i),l=t-o.actualBoundingBoxLeft,u=t+o.actualBoundingBoxRight,c=n-o.actualBoundingBoxAscent,h=n+o.actualBoundingBoxDescent,d=r.strikethrough?(c+h)/2:h;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=r.decorationWidth||2,e.moveTo(l,d),e.lineTo(u,d),e.stroke()}}function XC(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function Ga(e,t){const{x:n,y:i,w:r,h:o,radius:l}=t;e.arc(n+l.topLeft,i+l.topLeft,l.topLeft,-Se,Ae,!0),e.lineTo(n,i+o-l.bottomLeft),e.arc(n+l.bottomLeft,i+o-l.bottomLeft,l.bottomLeft,Ae,Se,!0),e.lineTo(n+r-l.bottomRight,i+o),e.arc(n+r-l.bottomRight,i+o-l.bottomRight,l.bottomRight,Se,0,!0),e.lineTo(n+r,i+l.topRight),e.arc(n+r-l.topRight,i+l.topRight,l.topRight,0,-Se,!0),e.lineTo(n+l.topLeft,i)}const qC=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,GC=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function JC(e,t){const n=(""+e).match(qC);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const ZC=e=>+e||0;function uf(e,t){const n={},i=Gt(t),r=i?Object.keys(t):t,o=Gt(e)?i?l=>Zt(e[l],e[t[l]]):l=>e[l]:()=>e;for(const l of r)n[l]=ZC(o(l));return n}function QC(e){return uf(e,{top:"y",right:"x",bottom:"y",left:"x"})}function es(e){return uf(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Xe(e){const t=QC(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Ie(e,t){e=e||{},t=t||Ce.font;let n=Zt(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let i=Zt(e.style,t.style);i&&!(""+i).match(GC)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:Zt(e.family,t.family),lineHeight:JC(Zt(e.lineHeight,t.lineHeight),n),size:n,style:i,weight:Zt(e.weight,t.weight),string:""};return r.string=VC(r),r}function pa(e,t,n,i){let r=!0,o,l,u;for(o=0,l=e.length;o<l;++o)if(u=e[o],u!==void 0&&(t!==void 0&&typeof u=="function"&&(u=u(t),r=!1),n!==void 0&&be(u)&&(u=u[n%u.length],r=!1),u!==void 0))return i&&!r&&(i.cacheable=!1),u}function tA(e,t,n){const{min:i,max:r}=e,o=Qm(t,(r-i)/2),l=(u,c)=>n&&u===0?0:u+c;return{min:l(i,-Math.abs(o)),max:l(r,o)}}function Ar(e,t){return Object.assign(Object.create(e),t)}function cf(e,t=[""],n=e,i,r=()=>e[0]){Xn(i)||(i=mv("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:i,_getTarget:r,override:l=>cf([l,...e],t,n,i)};return new Proxy(o,{deleteProperty(l,u){return delete l[u],delete l._keys,delete e[0][u],!0},get(l,u){return gv(l,u,()=>lA(u,t,e,l))},getOwnPropertyDescriptor(l,u){return Reflect.getOwnPropertyDescriptor(l._scopes[0],u)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(l,u){return Wp(l).includes(u)},ownKeys(l){return Wp(l)},set(l,u,c){const h=l._storage||(l._storage=r());return l[u]=h[u]=c,delete l._keys,!0}})}function as(e,t,n,i){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:pv(e,i),setContext:o=>as(e,o,n,i),override:o=>as(e.override(o),t,n,i)};return new Proxy(r,{deleteProperty(o,l){return delete o[l],delete e[l],!0},get(o,l,u){return gv(o,l,()=>nA(o,l,u))},getOwnPropertyDescriptor(o,l){return o._descriptors.allKeys?Reflect.has(e,l)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,l)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,l){return Reflect.has(e,l)},ownKeys(){return Reflect.ownKeys(e)},set(o,l,u){return e[l]=u,delete o[l],!0}})}function pv(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:i=t.indexable,_allKeys:r=t.allKeys}=e;return{allKeys:r,scriptable:n,indexable:i,isScriptable:qi(n)?n:()=>n,isIndexable:qi(i)?i:()=>i}}const eA=(e,t)=>e?e+Qc(t):t,ff=(e,t)=>Gt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function gv(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const i=n();return e[t]=i,i}function nA(e,t,n){const{_proxy:i,_context:r,_subProxy:o,_descriptors:l}=e;let u=i[t];return qi(u)&&l.isScriptable(t)&&(u=iA(t,u,e,n)),be(u)&&u.length&&(u=rA(t,u,e,l.isIndexable)),ff(t,u)&&(u=as(u,r,o&&o[t],l)),u}function iA(e,t,n,i){const{_proxy:r,_context:o,_subProxy:l,_stack:u}=n;if(u.has(e))throw new Error("Recursion detected: "+Array.from(u).join("->")+"->"+e);return u.add(e),t=t(o,l||i),u.delete(e),ff(e,t)&&(t=hf(r._scopes,r,e,t)),t}function rA(e,t,n,i){const{_proxy:r,_context:o,_subProxy:l,_descriptors:u}=n;if(Xn(o.index)&&i(e))t=t[o.index%t.length];else if(Gt(t[0])){const c=t,h=r._scopes.filter(d=>d!==c);t=[];for(const d of c){const g=hf(h,r,e,d);t.push(as(g,o,l&&l[e],u))}}return t}function _v(e,t,n){return qi(e)?e(t,n):e}const sA=(e,t)=>e===!0?t:typeof e=="string"?ro(t,e):void 0;function oA(e,t,n,i,r){for(const o of t){const l=sA(n,o);if(l){e.add(l);const u=_v(l._fallback,n,r);if(Xn(u)&&u!==n&&u!==i)return u}else if(l===!1&&Xn(i)&&n!==i)return null}return!1}function hf(e,t,n,i){const r=t._rootScopes,o=_v(t._fallback,n,i),l=[...e,...r],u=new Set;u.add(i);let c=Np(u,l,n,o||n,i);return c===null||Xn(o)&&o!==n&&(c=Np(u,l,o,c,i),c===null)?!1:cf(Array.from(u),[""],r,o,()=>aA(t,n,i))}function Np(e,t,n,i,r){for(;n;)n=oA(e,t,n,i,r);return n}function aA(e,t,n){const i=e._getTarget();t in i||(i[t]={});const r=i[t];return be(r)&&Gt(n)?n:r||{}}function lA(e,t,n,i){let r;for(const o of t)if(r=mv(eA(o,e),n),Xn(r))return ff(e,r)?hf(n,i,e,r):r}function mv(e,t){for(const n of t){if(!n)continue;const i=n[e];if(Xn(i))return i}}function Wp(e){let t=e._keys;return t||(t=e._keys=uA(e._scopes)),t}function uA(e){const t=new Set;for(const n of e)for(const i of Object.keys(n).filter(r=>!r.startsWith("_")))t.add(i);return Array.from(t)}function vv(){return typeof window<"u"&&typeof document<"u"}function df(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Ja(e,t,n){let i;return typeof e=="string"?(i=parseInt(e,10),e.indexOf("%")!==-1&&(i=i/100*t.parentNode[n])):i=e,i}const Ol=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function cA(e,t){return Ol(e).getPropertyValue(t)}const fA=["top","right","bottom","left"];function wr(e,t,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const o=fA[r];i[o]=parseFloat(e[t+"-"+o+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const hA=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function dA(e,t){const n=e.touches,i=n&&n.length?n[0]:e,{offsetX:r,offsetY:o}=i;let l=!1,u,c;if(hA(r,o,e.target))u=r,c=o;else{const h=t.getBoundingClientRect();u=i.clientX-h.left,c=i.clientY-h.top,l=!0}return{x:u,y:c,box:l}}function dr(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:i}=t,r=Ol(n),o=r.boxSizing==="border-box",l=wr(r,"padding"),u=wr(r,"border","width"),{x:c,y:h,box:d}=dA(e,n),g=l.left+(d&&u.left),_=l.top+(d&&u.top);let{width:m,height:x}=t;return o&&(m-=l.width+u.width,x-=l.height+u.height),{x:Math.round((c-g)/m*n.width/i),y:Math.round((h-_)/x*n.height/i)}}function pA(e,t,n){let i,r;if(t===void 0||n===void 0){const o=df(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const l=o.getBoundingClientRect(),u=Ol(o),c=wr(u,"border","width"),h=wr(u,"padding");t=l.width-h.width-c.width,n=l.height-h.height-c.height,i=Ja(u.maxWidth,o,"clientWidth"),r=Ja(u.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:i||Va,maxHeight:r||Va}}const ga=e=>Math.round(e*10)/10;function gA(e,t,n,i){const r=Ol(e),o=wr(r,"margin"),l=Ja(r.maxWidth,e,"clientWidth")||Va,u=Ja(r.maxHeight,e,"clientHeight")||Va,c=pA(e,t,n);let{width:h,height:d}=c;if(r.boxSizing==="content-box"){const _=wr(r,"border","width"),m=wr(r,"padding");h-=m.width+_.width,d-=m.height+_.height}return h=Math.max(0,h-o.width),d=Math.max(0,i?Math.floor(h/i):d-o.height),h=ga(Math.min(h,l,c.maxWidth)),d=ga(Math.min(d,u,c.maxHeight)),h&&!d&&(d=ga(h/2)),(t!==void 0||n!==void 0)&&i&&c.height&&d>c.height&&(d=c.height,h=ga(Math.floor(d*i))),{width:h,height:d}}function Up(e,t,n){const i=t||1,r=Math.floor(e.height*i),o=Math.floor(e.width*i);e.height=r/i,e.width=o/i;const l=e.canvas;return l.style&&(n||!l.style.height&&!l.style.width)&&(l.style.height=` + "`" + `${e.height}px` + "`" + `,l.style.width=` + "`" + `${e.width}px` + "`" + `),e.currentDevicePixelRatio!==i||l.height!==r||l.width!==o?(e.currentDevicePixelRatio=i,l.height=r,l.width=o,e.ctx.setTransform(i,0,0,i,0,0),!0):!1}const _A=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function Vp(e,t){const n=cA(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}const mA=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},vA=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function ns(e,t,n){return e?mA(t,n):vA()}function bv(e,t){let n,i;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)}function yv(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}/*!
 * Chart.js v4.0.1
 * https://www.chartjs.org
 * (c) 2022 Chart.js Contributors
 * Released under the MIT License
 */class bA{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,i,r){const o=n.listeners[r],l=n.duration;o.forEach(u=>u({chart:t,initial:n.initial,numSteps:l,currentStep:Math.min(i-n.start,l)}))}_refresh(){this._request||(this._running=!0,this._request=rv.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;const o=i.items;let l=o.length-1,u=!1,c;for(;l>=0;--l)c=o[l],c._active?(c._total>i.duration&&(i.duration=c._total),c.tick(t),u=!0):(o[l]=o[o.length-1],o.pop());u&&(r.draw(),this._notify(r,i,t,"progress")),o.length||(i.running=!1,this._notify(r,i,t,"complete"),i.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let i=n.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,i)),i}listen(t,n,i){this._getAnims(t).listeners[n].push(i)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const i=n.items;let r=i.length-1;for(;r>=0;--r)i[r].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var wi=new bA;const jp="transparent",yA={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const i=Fp(e||jp),r=i.valid&&Fp(t||jp);return r&&r.valid?r.mix(i,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class xA{constructor(t,n,i,r){const o=n[i];r=pa([t.to,r,o,t.from]);const l=pa([t.from,o,r]);this._active=!0,this._fn=t.fn||yA[t.type||typeof l],this._easing=Dp[t.easing]||Dp.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=i,this._from=l,this._to=r,this._promises=void 0}active(){return this._active}update(t,n,i){if(this._active){this._notify(!1);const r=this._target[this._prop],o=i-this._start,l=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(l,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=pa([t.to,n,r,t.from]),this._from=pa([t.from,r,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,i=this._duration,r=this._prop,o=this._from,l=this._loop,u=this._to;let c;if(this._active=o!==u&&(l||n<i),!this._active){this._target[r]=u,this._notify(!0);return}if(n<0){this._target[r]=o;return}c=n/i%2,c=l&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[r]=this._fn(o,u,c)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,i)=>{t.push({res:n,rej:i})})}_notify(t){const n=t?"res":"rej",i=this._promises||[];for(let r=0;r<i.length;r++)i[r][n]()}}class xv{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!Gt(t))return;const n=Object.keys(Ce.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(r=>{const o=t[r];if(!Gt(o))return;const l={};for(const u of n)l[u]=o[u];(be(o.properties)&&o.properties||[r]).forEach(u=>{(u===r||!i.has(u))&&i.set(u,l)})})}_animateOptions(t,n){const i=n.options,r=OA(t,i);if(!r)return[];const o=this._createAnimations(r,i);return i.$shared&&wA(t.options.$animations,i).then(()=>{t.options=i},()=>{}),o}_createAnimations(t,n){const i=this._properties,r=[],o=t.$animations||(t.$animations={}),l=Object.keys(n),u=Date.now();let c;for(c=l.length-1;c>=0;--c){const h=l[c];if(h.charAt(0)==="$")continue;if(h==="options"){r.push(...this._animateOptions(t,n));continue}const d=n[h];let g=o[h];const _=i.get(h);if(g)if(_&&g.active()){g.update(_,d,u);continue}else g.cancel();if(!_||!_.duration){t[h]=d;continue}o[h]=g=new xA(_,t,h,d),r.push(g)}return r}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const i=this._createAnimations(t,n);if(i.length)return wi.add(this._chart,i),!0}}function wA(e,t){const n=[],i=Object.keys(t);for(let r=0;r<i.length;r++){const o=e[i[r]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function OA(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function Yp(e,t){const n=e&&e.options||{},i=n.reverse,r=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:i?o:r,end:i?r:o}}function SA(e,t,n){if(n===!1)return!1;const i=Yp(e,n),r=Yp(t,n);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}function PA(e){let t,n,i,r;return Gt(e)?(t=e.top,n=e.right,i=e.bottom,r=e.left):t=n=i=r=e,{top:t,right:n,bottom:i,left:r,disabled:e===!1}}function wv(e,t){const n=[],i=e._getSortedDatasetMetas(t);let r,o;for(r=0,o=i.length;r<o;++r)n.push(i[r].index);return n}function Kp(e,t,n,i={}){const r=e.keys,o=i.mode==="single";let l,u,c,h;if(t!==null){for(l=0,u=r.length;l<u;++l){if(c=+r[l],c===n){if(i.all)continue;break}h=e.values[c],$e(h)&&(o||t===0||ja(t)===ja(h))&&(t+=h)}return t}}function MA(e){const t=Object.keys(e),n=new Array(t.length);let i,r,o;for(i=0,r=t.length;i<r;++i)o=t[i],n[i]={x:o,y:e[o]};return n}function Xp(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function CA(e,t,n){return` + "`" + `${e.id}.${t.id}.${n.stack||n.type}` + "`" + `}function AA(e){const{min:t,max:n,minDefined:i,maxDefined:r}=e.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}function TA(e,t,n){const i=e[t]||(e[t]={});return i[n]||(i[n]={})}function qp(e,t,n,i){for(const r of t.getMatchingVisibleMetas(i).reverse()){const o=e[r.index];if(n&&o>0||!n&&o<0)return r.index}return null}function Gp(e,t){const{chart:n,_cachedMeta:i}=e,r=n._stacks||(n._stacks={}),{iScale:o,vScale:l,index:u}=i,c=o.axis,h=l.axis,d=CA(o,l,i),g=t.length;let _;for(let m=0;m<g;++m){const x=t[m],{[c]:b,[h]:O}=x,C=x._stacks||(x._stacks={});_=C[h]=TA(r,d,b),_[u]=O,_._top=qp(_,l,!0,i.type),_._bottom=qp(_,l,!1,i.type)}}function Gu(e,t){const n=e.scales;return Object.keys(n).filter(i=>n[i].axis===t).shift()}function EA(e,t){return Ar(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function IA(e,t,n){return Ar(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Is(e,t){const n=e.controller.index,i=e.vScale&&e.vScale.axis;if(!!i){t=t||e._parsed;for(const r of t){const o=r._stacks;if(!o||o[i]===void 0||o[i][n]===void 0)return;delete o[i][n]}}}const Ju=e=>e==="reset"||e==="none",Jp=(e,t)=>t?e:Object.assign({},e),DA=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:wv(n,!0),values:null};class Xs{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Xp(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Is(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,i=this.getDataset(),r=(g,_,m,x)=>g==="x"?_:g==="r"?x:m,o=n.xAxisID=Zt(i.xAxisID,Gu(t,"x")),l=n.yAxisID=Zt(i.yAxisID,Gu(t,"y")),u=n.rAxisID=Zt(i.rAxisID,Gu(t,"r")),c=n.indexAxis,h=n.iAxisID=r(c,o,l,u),d=n.vAxisID=r(c,l,o,u);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(l),n.rScale=this.getScaleForId(u),n.iScale=this.getScaleForId(h),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Tp(this._data,this),t._stacked&&Is(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),i=this._data;if(Gt(n))this._data=MA(n);else if(i!==n){if(i){Tp(i,this);const r=this._cachedMeta;Is(r),r._parsed=[]}n&&Object.isExtensible(n)&&cC(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,i=this.getDataset();let r=!1;this._dataCheck();const o=n._stacked;n._stacked=Xp(n.vScale,n),n.stack!==i.stack&&(r=!0,Is(n),n.stack=i.stack),this._resyncElements(t),(r||o!==n._stacked)&&Gp(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:i,_data:r}=this,{iScale:o,_stacked:l}=i,u=o.axis;let c=t===0&&n===r.length?!0:i._sorted,h=t>0&&i._parsed[t-1],d,g,_;if(this._parsing===!1)i._parsed=r,i._sorted=!0,_=r;else{be(r[t])?_=this.parseArrayData(i,r,t,n):Gt(r[t])?_=this.parseObjectData(i,r,t,n):_=this.parsePrimitiveData(i,r,t,n);const m=()=>g[u]===null||h&&g[u]<h[u];for(d=0;d<n;++d)i._parsed[d+t]=g=_[d],c&&(m()&&(c=!1),h=g);i._sorted=c}l&&Gp(this,_)}parsePrimitiveData(t,n,i,r){const{iScale:o,vScale:l}=t,u=o.axis,c=l.axis,h=o.getLabels(),d=o===l,g=new Array(r);let _,m,x;for(_=0,m=r;_<m;++_)x=_+i,g[_]={[u]:d||o.parse(h[x],x),[c]:l.parse(n[x],x)};return g}parseArrayData(t,n,i,r){const{xScale:o,yScale:l}=t,u=new Array(r);let c,h,d,g;for(c=0,h=r;c<h;++c)d=c+i,g=n[d],u[c]={x:o.parse(g[0],d),y:l.parse(g[1],d)};return u}parseObjectData(t,n,i,r){const{xScale:o,yScale:l}=t,{xAxisKey:u="x",yAxisKey:c="y"}=this._parsing,h=new Array(r);let d,g,_,m;for(d=0,g=r;d<g;++d)_=d+i,m=n[_],h[d]={x:o.parse(ro(m,u),_),y:l.parse(ro(m,c),_)};return h}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,i){const r=this.chart,o=this._cachedMeta,l=n[t.axis],u={keys:wv(r,!0),values:n._stacks[t.axis]};return Kp(u,l,o.index,{mode:i})}updateRangeFromParsed(t,n,i,r){const o=i[n.axis];let l=o===null?NaN:o;const u=r&&i._stacks[n.axis];r&&u&&(r.values=u,l=Kp(r,o,this._cachedMeta.index)),t.min=Math.min(t.min,l),t.max=Math.max(t.max,l)}getMinMax(t,n){const i=this._cachedMeta,r=i._parsed,o=i._sorted&&t===i.iScale,l=r.length,u=this._getOtherScale(t),c=DA(n,i,this.chart),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:g}=AA(u);let _,m;function x(){m=r[_];const b=m[u.axis];return!$e(m[t.axis])||d>b||g<b}for(_=0;_<l&&!(!x()&&(this.updateRangeFromParsed(h,t,m,c),o));++_);if(o){for(_=l-1;_>=0;--_)if(!x()){this.updateRangeFromParsed(h,t,m,c);break}}return h}getAllParsedValues(t){const n=this._cachedMeta._parsed,i=[];let r,o,l;for(r=0,o=n.length;r<o;++r)l=n[r][t.axis],$e(l)&&i.push(l);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,i=n.iScale,r=n.vScale,o=this.getParsed(t);return{label:i?""+i.getLabelForValue(o[i.axis]):"",value:r?""+r.getLabelForValue(o[r.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=PA(Zt(this.options.clip,SA(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,i=this._cachedMeta,r=i.data||[],o=n.chartArea,l=[],u=this._drawStart||0,c=this._drawCount||r.length-u,h=this.options.drawActiveElementsOnTop;let d;for(i.dataset&&i.dataset.draw(t,o,u,c),d=u;d<u+c;++d){const g=r[d];g.hidden||(g.active&&h?l.push(g):g.draw(t,o))}for(d=0;d<l.length;++d)l[d].draw(t,o)}getStyle(t,n){const i=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,n,i){const r=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const l=this._cachedMeta.data[t];o=l.$context||(l.$context=IA(this.getContext(),t,l)),o.parsed=this.getParsed(t),o.raw=r.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=EA(this.chart.getContext(),this.index)),o.dataset=r,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=i,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",i){const r=n==="active",o=this._cachedDataOpts,l=t+"-"+n,u=o[l],c=this.enableOptionSharing&&Xn(i);if(u)return Jp(u,c);const h=this.chart.config,d=h.datasetElementScopeKeys(this._type,t),g=r?[` + "`" + `${t}Hover` + "`" + `,"hover",t,""]:[t,""],_=h.getOptionScopes(this.getDataset(),d),m=Object.keys(Ce.elements[t]),x=()=>this.getContext(i,r),b=h.resolveNamedOptions(_,m,x,g);return b.$shared&&(b.$shared=c,o[l]=Object.freeze(Jp(b,c))),b}_resolveAnimations(t,n,i){const r=this.chart,o=this._cachedDataOpts,l=` + "`" + `animation-${n}` + "`" + `,u=o[l];if(u)return u;let c;if(r.options.animation!==!1){const d=this.chart.config,g=d.datasetAnimationScopeKeys(this._type,n),_=d.getOptionScopes(this.getDataset(),g);c=d.createResolver(_,this.getContext(t,i,n))}const h=new xv(r,c&&c.animations);return c&&c._cacheable&&(o[l]=Object.freeze(h)),h}getSharedOptions(t){if(!!t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Ju(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const i=this.resolveDataElementOptions(t,n),r=this._sharedOptions,o=this.getSharedOptions(i),l=this.includeOptions(n,o)||o!==r;return this.updateSharedOptions(o,n,i),{sharedOptions:o,includeOptions:l}}updateElement(t,n,i,r){Ju(r)?Object.assign(t,i):this._resolveAnimations(n,r).update(t,i)}updateSharedOptions(t,n,i){t&&!Ju(n)&&this._resolveAnimations(void 0,n).update(t,i)}_setStyle(t,n,i,r){t.active=r;const o=this.getStyle(n,r);this._resolveAnimations(n,i,r).update(t,{options:!r&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,n,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,i=this._cachedMeta.data;for(const[u,c,h]of this._syncList)this[u](c,h);this._syncList=[];const r=i.length,o=n.length,l=Math.min(o,r);l&&this.parse(0,l),o>r?this._insertElements(r,o-r,t):o<r&&this._removeElements(o,r-o)}_insertElements(t,n,i=!0){const r=this._cachedMeta,o=r.data,l=t+n;let u;const c=h=>{for(h.length+=n,u=h.length-1;u>=l;u--)h[u]=h[u-n]};for(c(o),u=t;u<l;++u)o[u]=new this.dataElementType;this._parsing&&c(r._parsed),this.parse(t,n),i&&this.updateElements(o,t,n,"reset")}updateElements(t,n,i,r){}_removeElements(t,n){const i=this._cachedMeta;if(this._parsing){const r=i._parsed.splice(t,n);i._stacked&&Is(i,r)}i.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,i,r]=t;this[n](i,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}Ut(Xs,"defaults",{}),Ut(Xs,"datasetElementType",null),Ut(Xs,"dataElementType",null);function LA(e,t,n){let i=1,r=1,o=0,l=0;if(t<Oe){const u=e,c=u+t,h=Math.cos(u),d=Math.sin(u),g=Math.cos(c),_=Math.sin(c),m=(A,k,$)=>Ka(A,u,c,!0)?1:Math.max(k,k*n,$,$*n),x=(A,k,$)=>Ka(A,u,c,!0)?-1:Math.min(k,k*n,$,$*n),b=m(0,h,g),O=m(Se,d,_),C=x(Ae,h,g),L=x(Ae+Se,d,_);i=(b-C)/2,r=(O-L)/2,o=-(b+C)/2,l=-(O+L)/2}return{ratioX:i,ratioY:r,offsetX:o,offsetY:l}}class Hs extends Xs{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const i=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=i;else{let o=c=>+i[c];if(Gt(i[t])){const{key:c="value"}=this._parsing;o=h=>+ro(i[h],c)}let l,u;for(l=t,u=t+n;l<u;++l)r._parsed[l]=o(l)}}_getRotation(){return si(this.options.rotation-90)}_getCircumference(){return si(this.options.circumference)}_getRotationExtents(){let t=Oe,n=-Oe;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const r=this.chart.getDatasetMeta(i).controller,o=r._getRotation(),l=r._getCircumference();t=Math.min(t,o),n=Math.max(n,o+l)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:i}=n,r=this._cachedMeta,o=r.data,l=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,u=Math.max((Math.min(i.width,i.height)-l)/2,0),c=Math.min(J2(this.options.cutout,u),1),h=this._getRingWeight(this.index),{circumference:d,rotation:g}=this._getRotationExtents(),{ratioX:_,ratioY:m,offsetX:x,offsetY:b}=LA(g,d,c),O=(i.width-l)/_,C=(i.height-l)/m,L=Math.max(Math.min(O,C)/2,0),A=Qm(this.options.radius,L),k=Math.max(A*c,0),$=(A-k)/this._getVisibleDatasetWeightTotal();this.offsetX=x*A,this.offsetY=b*A,r.total=this.calculateTotal(),this.outerRadius=A-$*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-$*h,0),this.updateElements(o,0,o.length,t)}_circumference(t,n){const i=this.options,r=this._cachedMeta,o=this._getCircumference();return n&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||r._parsed[t]===null||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*o/Oe)}updateElements(t,n,i,r){const o=r==="reset",l=this.chart,u=l.chartArea,h=l.options.animation,d=(u.left+u.right)/2,g=(u.top+u.bottom)/2,_=o&&h.animateScale,m=_?0:this.innerRadius,x=_?0:this.outerRadius,{sharedOptions:b,includeOptions:O}=this._getSharedOptions(n,r);let C=this._getRotation(),L;for(L=0;L<n;++L)C+=this._circumference(L,o);for(L=n;L<n+i;++L){const A=this._circumference(L,o),k=t[L],$={x:d+this.offsetX,y:g+this.offsetY,startAngle:C,endAngle:C+A,circumference:A,outerRadius:x,innerRadius:m};O&&($.options=b||this.resolveDataElementOptions(L,k.active?"active":r)),C+=A,this.updateElement(k,L,$,r)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let i=0,r;for(r=0;r<n.length;r++){const o=t._parsed[r];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(r)&&!n[r].hidden&&(i+=Math.abs(o))}return i}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?Oe*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,i=this.chart,r=i.data.labels||[],o=xl(n._parsed[t],i.options.locale);return{label:r[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const i=this.chart;let r,o,l,u,c;if(!t){for(r=0,o=i.data.datasets.length;r<o;++r)if(i.isDatasetVisible(r)){l=i.getDatasetMeta(r),t=l.data,u=l.controller;break}}if(!t)return 0;for(r=0,o=t.length;r<o;++r)c=u.resolveDataElementOptions(r),c.borderAlign!=="inner"&&(n=Math.max(n,c.borderWidth||0,c.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let i=0,r=t.length;i<r;++i){const o=this.resolveDataElementOptions(i);n=Math.max(n,o.offset||0,o.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(n+=this._getRingWeight(i));return n}_getRingWeight(t){return Math.max(Zt(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Ut(Hs,"id","doughnut"),Ut(Hs,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),Ut(Hs,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"}),Ut(Hs,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:r}}=t.legend.options;return n.labels.map((o,l)=>{const c=t.getDatasetMeta(0).controller.getStyle(l);return{text:o,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:r,lineWidth:c.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(l),index:l}})}return[]}},onClick(t,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}}});function cr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class pf{static override(t){Object.assign(pf.prototype,t)}constructor(t){this.options=t||{}}init(){}formats(){return cr()}parse(){return cr()}format(){return cr()}add(){return cr()}diff(){return cr()}startOf(){return cr()}endOf(){return cr()}}var $A={_date:pf};function RA(e,t,n,i){const{controller:r,data:o,_sorted:l}=e,u=r._cachedMeta.iScale;if(u&&t===u.axis&&t!=="r"&&l&&o.length){const c=u._reversePixels?lC:gc;if(i){if(r._sharedOptions){const h=o[0],d=typeof h.getRange=="function"&&h.getRange(t);if(d){const g=c(o,t,n-d),_=c(o,t,n+d);return{lo:g.lo,hi:_.hi}}}}else return c(o,t,n)}return{lo:0,hi:o.length-1}}function po(e,t,n,i,r){const o=e.getSortedVisibleDatasetMetas(),l=n[t];for(let u=0,c=o.length;u<c;++u){const{index:h,data:d}=o[u],{lo:g,hi:_}=RA(o[u],t,l,r);for(let m=g;m<=_;++m){const x=d[m];x.skip||i(x,h,m)}}}function kA(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(i,r){const o=t?Math.abs(i.x-r.x):0,l=n?Math.abs(i.y-r.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(l,2))}}function Zu(e,t,n,i,r){const o=[];return!r&&!e.isPointInArea(t)||po(e,n,t,function(u,c,h){!r&&!dv(u,e.chartArea,0)||u.inRange(t.x,t.y,i)&&o.push({element:u,datasetIndex:c,index:h})},!0),o}function FA(e,t,n,i){let r=[];function o(l,u,c){const{startAngle:h,endAngle:d}=l.getProps(["startAngle","endAngle"],i),{angle:g}=nv(l,{x:t.x,y:t.y});Ka(g,h,d)&&r.push({element:l,datasetIndex:u,index:c})}return po(e,n,t,o),r}function BA(e,t,n,i,r,o){let l=[];const u=kA(n);let c=Number.POSITIVE_INFINITY;function h(d,g,_){const m=d.inRange(t.x,t.y,r);if(i&&!m)return;const x=d.getCenterPoint(r);if(!(!!o||e.isPointInArea(x))&&!m)return;const O=u(t,x);O<c?(l=[{element:d,datasetIndex:g,index:_}],c=O):O===c&&l.push({element:d,datasetIndex:g,index:_})}return po(e,n,t,h),l}function Qu(e,t,n,i,r,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!i?FA(e,t,n,r):BA(e,t,n,i,r,o)}function Zp(e,t,n,i,r){const o=[],l=n==="x"?"inXRange":"inYRange";let u=!1;return po(e,n,t,(c,h,d)=>{c[l](t[n],r)&&(o.push({element:c,datasetIndex:h,index:d}),u=u||c.inRange(t.x,t.y,r))}),i&&!u?[]:o}var HA={evaluateInteractionItems:po,modes:{index(e,t,n,i){const r=dr(t,e),o=n.axis||"x",l=n.includeInvisible||!1,u=n.intersect?Zu(e,r,o,i,l):Qu(e,r,o,!1,i,l),c=[];return u.length?(e.getSortedVisibleDatasetMetas().forEach(h=>{const d=u[0].index,g=h.data[d];g&&!g.skip&&c.push({element:g,datasetIndex:h.index,index:d})}),c):[]},dataset(e,t,n,i){const r=dr(t,e),o=n.axis||"xy",l=n.includeInvisible||!1;let u=n.intersect?Zu(e,r,o,i,l):Qu(e,r,o,!1,i,l);if(u.length>0){const c=u[0].datasetIndex,h=e.getDatasetMeta(c).data;u=[];for(let d=0;d<h.length;++d)u.push({element:h[d],datasetIndex:c,index:d})}return u},point(e,t,n,i){const r=dr(t,e),o=n.axis||"xy",l=n.includeInvisible||!1;return Zu(e,r,o,i,l)},nearest(e,t,n,i){const r=dr(t,e),o=n.axis||"xy",l=n.includeInvisible||!1;return Qu(e,r,o,n.intersect,i,l)},x(e,t,n,i){const r=dr(t,e);return Zp(e,r,"x",n.intersect,i)},y(e,t,n,i){const r=dr(t,e);return Zp(e,r,"y",n.intersect,i)}}};const Ov=["left","top","right","bottom"];function Ds(e,t){return e.filter(n=>n.pos===t)}function Qp(e,t){return e.filter(n=>Ov.indexOf(n.pos)===-1&&n.box.axis===t)}function Ls(e,t){return e.sort((n,i)=>{const r=t?i:n,o=t?n:i;return r.weight===o.weight?r.index-o.index:r.weight-o.weight})}function zA(e){const t=[];let n,i,r,o,l,u;for(n=0,i=(e||[]).length;n<i;++n)r=e[n],{position:o,options:{stack:l,stackWeight:u=1}}=r,t.push({index:n,box:r,pos:o,horizontal:r.isHorizontal(),weight:r.weight,stack:l&&o+l,stackWeight:u});return t}function NA(e){const t={};for(const n of e){const{stack:i,pos:r,stackWeight:o}=n;if(!i||!Ov.includes(r))continue;const l=t[i]||(t[i]={count:0,placed:0,weight:0,size:0});l.count++,l.weight+=o}return t}function WA(e,t){const n=NA(e),{vBoxMaxWidth:i,hBoxMaxHeight:r}=t;let o,l,u;for(o=0,l=e.length;o<l;++o){u=e[o];const{fullSize:c}=u.box,h=n[u.stack],d=h&&u.stackWeight/h.weight;u.horizontal?(u.width=d?d*i:c&&t.availableWidth,u.height=r):(u.width=i,u.height=d?d*r:c&&t.availableHeight)}return n}function UA(e){const t=zA(e),n=Ls(t.filter(h=>h.box.fullSize),!0),i=Ls(Ds(t,"left"),!0),r=Ls(Ds(t,"right")),o=Ls(Ds(t,"top"),!0),l=Ls(Ds(t,"bottom")),u=Qp(t,"x"),c=Qp(t,"y");return{fullSize:n,leftAndTop:i.concat(o),rightAndBottom:r.concat(c).concat(l).concat(u),chartArea:Ds(t,"chartArea"),vertical:i.concat(r).concat(c),horizontal:o.concat(l).concat(u)}}function tg(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function Sv(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function VA(e,t,n,i){const{pos:r,box:o}=n,l=e.maxPadding;if(!Gt(r)){n.size&&(e[r]-=n.size);const g=i[n.stack]||{size:0,count:1};g.size=Math.max(g.size,n.horizontal?o.height:o.width),n.size=g.size/g.count,e[r]+=n.size}o.getPadding&&Sv(l,o.getPadding());const u=Math.max(0,t.outerWidth-tg(l,e,"left","right")),c=Math.max(0,t.outerHeight-tg(l,e,"top","bottom")),h=u!==e.w,d=c!==e.h;return e.w=u,e.h=c,n.horizontal?{same:h,other:d}:{same:d,other:h}}function jA(e){const t=e.maxPadding;function n(i){const r=Math.max(t[i]-e[i],0);return e[i]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function YA(e,t){const n=t.maxPadding;function i(r){const o={left:0,top:0,right:0,bottom:0};return r.forEach(l=>{o[l]=Math.max(t[l],n[l])}),o}return i(e?["left","right"]:["top","bottom"])}function zs(e,t,n,i){const r=[];let o,l,u,c,h,d;for(o=0,l=e.length,h=0;o<l;++o){u=e[o],c=u.box,c.update(u.width||t.w,u.height||t.h,YA(u.horizontal,t));const{same:g,other:_}=VA(t,n,u,i);h|=g&&r.length,d=d||_,c.fullSize||r.push(u)}return h&&zs(r,t,n,i)||d}function _a(e,t,n,i,r){e.top=n,e.left=t,e.right=t+i,e.bottom=n+r,e.width=i,e.height=r}function eg(e,t,n,i){const r=n.padding;let{x:o,y:l}=t;for(const u of e){const c=u.box,h=i[u.stack]||{count:1,placed:0,weight:1},d=u.stackWeight/h.weight||1;if(u.horizontal){const g=t.w*d,_=h.size||c.height;Xn(h.start)&&(l=h.start),c.fullSize?_a(c,r.left,l,n.outerWidth-r.right-r.left,_):_a(c,t.left+h.placed,l,g,_),h.start=l,h.placed+=g,l=c.bottom}else{const g=t.h*d,_=h.size||c.width;Xn(h.start)&&(o=h.start),c.fullSize?_a(c,o,r.top,_,n.outerHeight-r.bottom-r.top):_a(c,o,t.top+h.placed,_,g),h.start=o,h.placed+=g,o=c.right}}t.x=o,t.y=l}var Rn={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,i){if(!e)return;const r=Xe(e.options.layout.padding),o=Math.max(t-r.width,0),l=Math.max(n-r.height,0),u=UA(e.boxes),c=u.vertical,h=u.horizontal;ie(e.boxes,b=>{typeof b.beforeLayout=="function"&&b.beforeLayout()});const d=c.reduce((b,O)=>O.box.options&&O.box.options.display===!1?b:b+1,0)||1,g=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:o,availableHeight:l,vBoxMaxWidth:o/2/d,hBoxMaxHeight:l/2}),_=Object.assign({},r);Sv(_,Xe(i));const m=Object.assign({maxPadding:_,w:o,h:l,x:r.left,y:r.top},r),x=WA(c.concat(h),g);zs(u.fullSize,m,g,x),zs(c,m,g,x),zs(h,m,g,x)&&zs(c,m,g,x),jA(m),eg(u.leftAndTop,m,g,x),m.x+=m.w,m.y+=m.h,eg(u.rightAndBottom,m,g,x),e.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},ie(u.chartArea,b=>{const O=b.box;Object.assign(O,e.chartArea),O.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class Pv{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,i){}removeEventListener(t,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,i,r){return n=Math.max(0,n||t.width),i=i||t.height,{width:n,height:Math.max(0,r?Math.floor(n/r):i)}}isAttached(t){return!0}updateConfig(t){}}class KA extends Pv{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Da="$chartjs",XA={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ng=e=>e===null||e==="";function qA(e,t){const n=e.style,i=e.getAttribute("height"),r=e.getAttribute("width");if(e[Da]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",ng(r)){const o=Vp(e,"width");o!==void 0&&(e.width=o)}if(ng(i))if(e.style.height==="")e.height=e.width/(t||2);else{const o=Vp(e,"height");o!==void 0&&(e.height=o)}return e}const Mv=_A?{passive:!0}:!1;function GA(e,t,n){e.addEventListener(t,n,Mv)}function JA(e,t,n){e.canvas.removeEventListener(t,n,Mv)}function ZA(e,t){const n=XA[e.type]||e.type,{x:i,y:r}=dr(e,t);return{type:n,chart:t,native:e,x:i!==void 0?i:null,y:r!==void 0?r:null}}function Za(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function QA(e,t,n){const i=e.canvas,r=new MutationObserver(o=>{let l=!1;for(const u of o)l=l||Za(u.addedNodes,i),l=l&&!Za(u.removedNodes,i);l&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}function tT(e,t,n){const i=e.canvas,r=new MutationObserver(o=>{let l=!1;for(const u of o)l=l||Za(u.removedNodes,i),l=l&&!Za(u.addedNodes,i);l&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}const so=new Map;let ig=0;function Cv(){const e=window.devicePixelRatio;e!==ig&&(ig=e,so.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function eT(e,t){so.size||window.addEventListener("resize",Cv),so.set(e,t)}function nT(e){so.delete(e),so.size||window.removeEventListener("resize",Cv)}function iT(e,t,n){const i=e.canvas,r=i&&df(i);if(!r)return;const o=sv((u,c)=>{const h=r.clientWidth;n(u,c),h<r.clientWidth&&n()},window),l=new ResizeObserver(u=>{const c=u[0],h=c.contentRect.width,d=c.contentRect.height;h===0&&d===0||o(h,d)});return l.observe(r),eT(e,o),l}function tc(e,t,n){n&&n.disconnect(),t==="resize"&&nT(e)}function rT(e,t,n){const i=e.canvas,r=sv(o=>{e.ctx!==null&&n(ZA(o,e))},e);return GA(i,t,r),r}class sT extends Pv{acquireContext(t,n){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(qA(t,n),i):null}releaseContext(t){const n=t.canvas;if(!n[Da])return!1;const i=n[Da].initial;["height","width"].forEach(o=>{const l=i[o];me(l)?n.removeAttribute(o):n.setAttribute(o,l)});const r=i.style||{};return Object.keys(r).forEach(o=>{n.style[o]=r[o]}),n.width=n.width,delete n[Da],!0}addEventListener(t,n,i){this.removeEventListener(t,n);const r=t.$proxies||(t.$proxies={}),l={attach:QA,detach:tT,resize:iT}[n]||rT;r[n]=l(t,n,i)}removeEventListener(t,n){const i=t.$proxies||(t.$proxies={}),r=i[n];if(!r)return;({attach:tc,detach:tc,resize:tc}[n]||JA)(t,n,r),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,i,r){return gA(t,n,i,r)}isAttached(t){const n=df(t);return!!(n&&n.isConnected)}}function oT(e){return!vv()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?KA:sT}class Gi{constructor(){Ut(this,"active",!1)}tooltipPosition(t){const{x:n,y:i}=this.getProps(["x","y"],t);return{x:n,y:i}}hasValue(){return Ya(this.x)&&Ya(this.y)}getProps(t,n){const i=this.$animations;if(!n||!i)return this;const r={};return t.forEach(o=>{r[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),r}}Ut(Gi,"defaults",{}),Ut(Gi,"defaultRoutes");function aT(e,t){const n=e.options.ticks,i=lT(e),r=Math.min(n.maxTicksLimit||i,i),o=n.major.enabled?cT(t):[],l=o.length,u=o[0],c=o[l-1],h=[];if(l>r)return fT(t,h,o,l/r),h;const d=uT(o,t,r);if(l>0){let g,_;const m=l>1?Math.round((c-u)/(l-1)):null;for(ma(t,h,d,me(m)?0:u-m,u),g=0,_=l-1;g<_;g++)ma(t,h,d,o[g],o[g+1]);return ma(t,h,d,c,me(m)?t.length:c+m),h}return ma(t,h,d),h}function lT(e){const t=e.options.offset,n=e._tickSize(),i=e._length/n+(t?0:1),r=e._maxLength/n;return Math.floor(Math.min(i,r))}function uT(e,t,n){const i=hT(e),r=t.length/n;if(!i)return Math.max(r,1);const o=rC(i);for(let l=0,u=o.length-1;l<u;l++){const c=o[l];if(c>r)return c}return Math.max(r,1)}function cT(e){const t=[];let n,i;for(n=0,i=e.length;n<i;n++)e[n].major&&t.push(n);return t}function fT(e,t,n,i){let r=0,o=n[0],l;for(i=Math.ceil(i),l=0;l<e.length;l++)l===o&&(t.push(e[l]),r++,o=n[r*i])}function ma(e,t,n,i,r){const o=Zt(i,0),l=Math.min(Zt(r,e.length),e.length);let u=0,c,h,d;for(n=Math.ceil(n),r&&(c=r-i,n=c/Math.floor(c/n)),d=o;d<0;)u++,d=Math.round(o+u*n);for(h=Math.max(o,0);h<l;h++)h===d&&(t.push(e[h]),u++,d=Math.round(o+u*n))}function hT(e){const t=e.length;let n,i;if(t<2)return!1;for(i=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==i)return!1;return i}const dT=e=>e==="left"?"right":e==="right"?"left":e,rg=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function sg(e,t){const n=[],i=e.length/t,r=e.length;let o=0;for(;o<r;o+=i)n.push(e[Math.floor(o)]);return n}function pT(e,t,n){const i=e.ticks.length,r=Math.min(t,i-1),o=e._startPixel,l=e._endPixel,u=1e-6;let c=e.getPixelForTick(r),h;if(!(n&&(i===1?h=Math.max(c-o,l-c):t===0?h=(e.getPixelForTick(1)-c)/2:h=(c-e.getPixelForTick(r-1))/2,c+=r<t?h:-h,c<o-u||c>l+u)))return c}function gT(e,t){ie(e,n=>{const i=n.gc,r=i.length/2;let o;if(r>t){for(o=0;o<r;++o)delete n.data[i[o]];i.splice(0,r)}})}function $s(e){return e.drawTicks?e.tickLength:0}function og(e,t){if(!e.display)return 0;const n=Ie(e.font,t),i=Xe(e.padding);return(be(e.text)?e.text.length:1)*n.lineHeight+i.height}function _T(e,t){return Ar(e,{scale:t,type:"scale"})}function mT(e,t,n){return Ar(e,{tick:n,index:t,type:"tick"})}function vT(e,t,n){let i=nf(e);return(n&&t!=="right"||!n&&t==="right")&&(i=dT(i)),i}function bT(e,t,n,i){const{top:r,left:o,bottom:l,right:u,chart:c}=e,{chartArea:h,scales:d}=c;let g=0,_,m,x;const b=l-r,O=u-o;if(e.isHorizontal()){if(m=Ue(i,o,u),Gt(n)){const C=Object.keys(n)[0],L=n[C];x=d[C].getPixelForValue(L)+b-t}else n==="center"?x=(h.bottom+h.top)/2+b-t:x=rg(e,n,t);_=u-o}else{if(Gt(n)){const C=Object.keys(n)[0],L=n[C];m=d[C].getPixelForValue(L)-O+t}else n==="center"?m=(h.left+h.right)/2-O+t:m=rg(e,n,t);x=Ue(i,l,r),g=n==="left"?-Se:Se}return{titleX:m,titleY:x,maxWidth:_,rotation:g}}class Tr extends Gi{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:i,_suggestedMax:r}=this;return t=yn(t,Number.POSITIVE_INFINITY),n=yn(n,Number.NEGATIVE_INFINITY),i=yn(i,Number.POSITIVE_INFINITY),r=yn(r,Number.NEGATIVE_INFINITY),{min:yn(t,i),max:yn(n,r),minDefined:$e(t),maxDefined:$e(n)}}getMinMax(t){let{min:n,max:i,minDefined:r,maxDefined:o}=this.getUserBounds(),l;if(r&&o)return{min:n,max:i};const u=this.getMatchingVisibleMetas();for(let c=0,h=u.length;c<h;++c)l=u[c].controller.getMinMax(this,t),r||(n=Math.min(n,l.min)),o||(i=Math.max(i,l.max));return n=o&&n>i?i:n,i=r&&n>i?n:i,{min:yn(n,yn(i,n)),max:yn(i,yn(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){le(this.options.beforeUpdate,[this])}update(t,n,i){const{beginAtZero:r,grace:o,ticks:l}=this.options,u=l.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=tA(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=u<this.ticks.length;this._convertTicksToLabels(c?sg(this.ticks,u):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),l.display&&(l.autoSkip||l.source==="auto")&&(this.ticks=aT(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,i;this.isHorizontal()?(n=this.left,i=this.right):(n=this.top,i=this.bottom,t=!t),this._startPixel=n,this._endPixel=i,this._reversePixels=t,this._length=i-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){le(this.options.afterUpdate,[this])}beforeSetDimensions(){le(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){le(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),le(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){le(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let i,r,o;for(i=0,r=t.length;i<r;i++)o=t[i],o.label=le(n.callback,[o.value,i,t],this)}afterTickToLabelConversion(){le(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){le(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,i=this.ticks.length,r=n.minRotation||0,o=n.maxRotation;let l=r,u,c,h;if(!this._isVisible()||!n.display||r>=o||i<=1||!this.isHorizontal()){this.labelRotation=r;return}const d=this._getLabelSizes(),g=d.widest.width,_=d.highest.height,m=wn(this.chart.width-g,0,this.maxWidth);u=t.offset?this.maxWidth/i:m/(i-1),g+6>u&&(u=m/(i-(t.offset?.5:1)),c=this.maxHeight-$s(t.grid)-n.padding-og(t.title,this.chart.options.font),h=Math.sqrt(g*g+_*_),l=tf(Math.min(Math.asin(wn((d.highest.height+6)/u,-1,1)),Math.asin(wn(c/h,-1,1))-Math.asin(wn(_/h,-1,1)))),l=Math.max(r,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){le(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){le(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:i,title:r,grid:o}}=this,l=this._isVisible(),u=this.isHorizontal();if(l){const c=og(r,n.options.font);if(u?(t.width=this.maxWidth,t.height=$s(o)+c):(t.height=this.maxHeight,t.width=$s(o)+c),i.display&&this.ticks.length){const{first:h,last:d,widest:g,highest:_}=this._getLabelSizes(),m=i.padding*2,x=si(this.labelRotation),b=Math.cos(x),O=Math.sin(x);if(u){const C=i.mirror?0:O*g.width+b*_.height;t.height=Math.min(this.maxHeight,t.height+C+m)}else{const C=i.mirror?0:b*g.width+O*_.height;t.width=Math.min(this.maxWidth,t.width+C+m)}this._calculatePadding(h,d,O,b)}}this._handleMargins(),u?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,i,r){const{ticks:{align:o,padding:l},position:u}=this.options,c=this.labelRotation!==0,h=u!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,g=this.right-this.getPixelForTick(this.ticks.length-1);let _=0,m=0;c?h?(_=r*t.width,m=i*n.height):(_=i*t.height,m=r*n.width):o==="start"?m=n.width:o==="end"?_=t.width:o!=="inner"&&(_=t.width/2,m=n.width/2),this.paddingLeft=Math.max((_-d+l)*this.width/(this.width-d),0),this.paddingRight=Math.max((m-g+l)*this.width/(this.width-g),0)}else{let d=n.height/2,g=t.height/2;o==="start"?(d=0,g=t.height):o==="end"&&(d=n.height,g=0),this.paddingTop=d+l,this.paddingBottom=g+l}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){le(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,i;for(n=0,i=t.length;n<i;n++)me(t[n].label)&&(t.splice(n,1),i--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let i=this.ticks;n<i.length&&(i=sg(i,n)),this._labelSizes=t=this._computeLabelSizes(i,i.length)}return t}_computeLabelSizes(t,n){const{ctx:i,_longestTextCache:r}=this,o=[],l=[];let u=0,c=0,h,d,g,_,m,x,b,O,C,L,A;for(h=0;h<n;++h){if(_=t[h].label,m=this._resolveTickFontOptions(h),i.font=x=m.string,b=r[x]=r[x]||{data:{},gc:[]},O=m.lineHeight,C=L=0,!me(_)&&!be(_))C=qa(i,b.data,b.gc,C,_),L=O;else if(be(_))for(d=0,g=_.length;d<g;++d)A=_[d],!me(A)&&!be(A)&&(C=qa(i,b.data,b.gc,C,A),L+=O);o.push(C),l.push(L),u=Math.max(C,u),c=Math.max(L,c)}gT(r,n);const k=o.indexOf(u),$=l.indexOf(c),U=F=>({width:o[F]||0,height:l[F]||0});return{first:U(0),last:U(n-1),widest:U(k),highest:U($),widths:o,heights:l}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return aC(this._alignToPixels?ur(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const i=n[t];return i.$context||(i.$context=mT(this.getContext(),t,i))}return this.$context||(this.$context=_T(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=si(this.labelRotation),i=Math.abs(Math.cos(n)),r=Math.abs(Math.sin(n)),o=this._getLabelSizes(),l=t.autoSkipPadding||0,u=o?o.widest.width+l:0,c=o?o.highest.height+l:0;return this.isHorizontal()?c*i>u*r?u/i:c/r:c*r<u*i?c/i:u/r}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,i=this.chart,r=this.options,{grid:o,position:l,border:u}=r,c=o.offset,h=this.isHorizontal(),g=this.ticks.length+(c?1:0),_=$s(o),m=[],x=u.setContext(this.getContext()),b=x.display?x.width:0,O=b/2,C=function(st){return ur(i,st,b)};let L,A,k,$,U,F,N,J,it,dt,Pt,ut;if(l==="top")L=C(this.bottom),F=this.bottom-_,J=L-O,dt=C(t.top)+O,ut=t.bottom;else if(l==="bottom")L=C(this.top),dt=t.top,ut=C(t.bottom)-O,F=L+O,J=this.top+_;else if(l==="left")L=C(this.right),U=this.right-_,N=L-O,it=C(t.left)+O,Pt=t.right;else if(l==="right")L=C(this.left),it=t.left,Pt=C(t.right)-O,U=L+O,N=this.left+_;else if(n==="x"){if(l==="center")L=C((t.top+t.bottom)/2+.5);else if(Gt(l)){const st=Object.keys(l)[0],E=l[st];L=C(this.chart.scales[st].getPixelForValue(E))}dt=t.top,ut=t.bottom,F=L+O,J=F+_}else if(n==="y"){if(l==="center")L=C((t.left+t.right)/2);else if(Gt(l)){const st=Object.keys(l)[0],E=l[st];L=C(this.chart.scales[st].getPixelForValue(E))}U=L-O,N=U-_,it=t.left,Pt=t.right}const rt=Zt(r.ticks.maxTicksLimit,g),K=Math.max(1,Math.ceil(g/rt));for(A=0;A<g;A+=K){const st=this.getContext(A),E=o.setContext(st),B=u.setContext(st),Z=E.lineWidth,at=E.color,ht=B.dash||[],mt=B.dashOffset,jt=E.tickWidth,pe=E.tickColor,oe=E.tickBorderDash||[],re=E.tickBorderDashOffset;k=pT(this,A,c),k!==void 0&&($=ur(i,k,Z),h?U=N=it=Pt=$:F=J=dt=ut=$,m.push({tx1:U,ty1:F,tx2:N,ty2:J,x1:it,y1:dt,x2:Pt,y2:ut,width:Z,color:at,borderDash:ht,borderDashOffset:mt,tickWidth:jt,tickColor:pe,tickBorderDash:oe,tickBorderDashOffset:re}))}return this._ticksLength=g,this._borderValue=L,m}_computeLabelItems(t){const n=this.axis,i=this.options,{position:r,ticks:o}=i,l=this.isHorizontal(),u=this.ticks,{align:c,crossAlign:h,padding:d,mirror:g}=o,_=$s(i.grid),m=_+d,x=g?-d:m,b=-si(this.labelRotation),O=[];let C,L,A,k,$,U,F,N,J,it,dt,Pt,ut="middle";if(r==="top")U=this.bottom-x,F=this._getXAxisLabelAlignment();else if(r==="bottom")U=this.top+x,F=this._getXAxisLabelAlignment();else if(r==="left"){const K=this._getYAxisLabelAlignment(_);F=K.textAlign,$=K.x}else if(r==="right"){const K=this._getYAxisLabelAlignment(_);F=K.textAlign,$=K.x}else if(n==="x"){if(r==="center")U=(t.top+t.bottom)/2+m;else if(Gt(r)){const K=Object.keys(r)[0],st=r[K];U=this.chart.scales[K].getPixelForValue(st)+m}F=this._getXAxisLabelAlignment()}else if(n==="y"){if(r==="center")$=(t.left+t.right)/2-m;else if(Gt(r)){const K=Object.keys(r)[0],st=r[K];$=this.chart.scales[K].getPixelForValue(st)}F=this._getYAxisLabelAlignment(_).textAlign}n==="y"&&(c==="start"?ut="top":c==="end"&&(ut="bottom"));const rt=this._getLabelSizes();for(C=0,L=u.length;C<L;++C){A=u[C],k=A.label;const K=o.setContext(this.getContext(C));N=this.getPixelForTick(C)+o.labelOffset,J=this._resolveTickFontOptions(C),it=J.lineHeight,dt=be(k)?k.length:1;const st=dt/2,E=K.color,B=K.textStrokeColor,Z=K.textStrokeWidth;let at=F;l?($=N,F==="inner"&&(C===L-1?at=this.options.reverse?"left":"right":C===0?at=this.options.reverse?"right":"left":at="center"),r==="top"?h==="near"||b!==0?Pt=-dt*it+it/2:h==="center"?Pt=-rt.highest.height/2-st*it+it:Pt=-rt.highest.height+it/2:h==="near"||b!==0?Pt=it/2:h==="center"?Pt=rt.highest.height/2-st*it:Pt=rt.highest.height-dt*it,g&&(Pt*=-1),b!==0&&!K.showLabelBackdrop&&($+=it/2*Math.sin(b))):(U=N,Pt=(1-dt)*it/2);let ht;if(K.showLabelBackdrop){const mt=Xe(K.backdropPadding),jt=rt.heights[C],pe=rt.widths[C];let oe=Pt-mt.top,re=0-mt.left;switch(ut){case"middle":oe-=jt/2;break;case"bottom":oe-=jt;break}switch(F){case"center":re-=pe/2;break;case"right":re-=pe;break}ht={left:re,top:oe,width:pe+mt.width,height:jt+mt.height,color:K.backdropColor}}O.push({rotation:b,label:k,font:J,color:E,strokeColor:B,strokeWidth:Z,textOffset:Pt,textAlign:at,textBaseline:ut,translation:[$,U],backdrop:ht})}return O}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-si(this.labelRotation))return t==="top"?"left":"right";let r="center";return n.align==="start"?r="left":n.align==="end"?r="right":n.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:i,mirror:r,padding:o}}=this.options,l=this._getLabelSizes(),u=t+o,c=l.widest.width;let h,d;return n==="left"?r?(d=this.right+o,i==="near"?h="left":i==="center"?(h="center",d+=c/2):(h="right",d+=c)):(d=this.right-u,i==="near"?h="right":i==="center"?(h="center",d-=c/2):(h="left",d=this.left)):n==="right"?r?(d=this.left+o,i==="near"?h="right":i==="center"?(h="center",d-=c/2):(h="left",d-=c)):(d=this.left+u,i==="near"?h="left":i==="center"?(h="center",d+=c/2):(h="right",d=this.right)):h="right",{textAlign:h,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:i,top:r,width:o,height:l}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(i,r,o,l),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const r=this.ticks.findIndex(o=>o.value===t);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){const n=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,l;const u=(c,h,d)=>{!d.width||!d.color||(i.save(),i.lineWidth=d.width,i.strokeStyle=d.color,i.setLineDash(d.borderDash||[]),i.lineDashOffset=d.borderDashOffset,i.beginPath(),i.moveTo(c.x,c.y),i.lineTo(h.x,h.y),i.stroke(),i.restore())};if(n.display)for(o=0,l=r.length;o<l;++o){const c=r[o];n.drawOnChartArea&&u({x:c.x1,y:c.y1},{x:c.x2,y:c.y2},c),n.drawTicks&&u({x:c.tx1,y:c.ty1},{x:c.tx2,y:c.ty2},{color:c.tickColor,width:c.tickWidth,borderDash:c.tickBorderDash,borderDashOffset:c.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:i,grid:r}}=this,o=i.setContext(this.getContext()),l=i.display?o.width:0;if(!l)return;const u=r.setContext(this.getContext(0)).lineWidth,c=this._borderValue;let h,d,g,_;this.isHorizontal()?(h=ur(t,this.left,l)-l/2,d=ur(t,this.right,u)+u/2,g=_=c):(g=ur(t,this.top,l)-l/2,_=ur(t,this.bottom,u)+u/2,h=d=c),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(h,g),n.lineTo(d,_),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const i=this.ctx,r=this._computeLabelArea();r&&af(i,r);const o=this._labelItems||(this._labelItems=this._computeLabelItems(t));let l,u;for(l=0,u=o.length;l<u;++l){const c=o[l],h=c.font,d=c.label;let g=c.textOffset;Cr(i,d,0,g,h,c)}r&&lf(i)}drawTitle(){const{ctx:t,options:{position:n,title:i,reverse:r}}=this;if(!i.display)return;const o=Ie(i.font),l=Xe(i.padding),u=i.align;let c=o.lineHeight/2;n==="bottom"||n==="center"||Gt(n)?(c+=l.bottom,be(i.text)&&(c+=o.lineHeight*(i.text.length-1))):c+=l.top;const{titleX:h,titleY:d,maxWidth:g,rotation:_}=bT(this,c,n,u);Cr(t,i.text,0,0,o,{color:i.color,maxWidth:g,rotation:_,textAlign:vT(u,n,r),textBaseline:"middle",translation:[h,d]})}draw(t){!this._isVisible()||(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,i=Zt(t.grid&&t.grid.z,-1),r=Zt(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Tr.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:i,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[];let o,l;for(o=0,l=n.length;o<l;++o){const u=n[o];u[i]===this.id&&(!t||u.type===t)&&r.push(u)}return r}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return Ie(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class va{constructor(t,n,i){this.type=t,this.scope=n,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let i;wT(n)&&(i=this.register(n));const r=this.items,o=t.id,l=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in r||(r[o]=t,yT(t,l,i),this.override&&Ce.override(t.id,t.overrides)),l}get(t){return this.items[t]}unregister(t){const n=this.items,i=t.id,r=this.scope;i in n&&delete n[i],r&&i in Ce[r]&&(delete Ce[r][i],this.override&&delete Mr[i])}}function yT(e,t,n){const i=io(Object.create(null),[n?Ce.get(n):{},Ce.get(t),e.defaults]);Ce.set(t,i),e.defaultRoutes&&xT(t,e.defaultRoutes),e.descriptors&&Ce.describe(t,e.descriptors)}function xT(e,t){Object.keys(t).forEach(n=>{const i=n.split("."),r=i.pop(),o=[e].concat(i).join("."),l=t[n].split("."),u=l.pop(),c=l.join(".");Ce.route(o,r,c,u)})}function wT(e){return"id"in e&&"defaults"in e}class OT{constructor(){this.controllers=new va(Xs,"datasets",!0),this.elements=new va(Gi,"elements"),this.plugins=new va(Object,"plugins"),this.scales=new va(Tr,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,i){[...n].forEach(r=>{const o=i||this._getRegistryForType(r);i||o.isForType(r)||o===this.plugins&&r.id?this._exec(t,o,r):ie(r,l=>{const u=i||this._getRegistryForType(l);this._exec(t,u,l)})})}_exec(t,n,i){const r=Qc(t);le(i["before"+r],[],i),n[t](i),le(i["after"+r],[],i)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const i=this._typedRegistries[n];if(i.isForType(t))return i}return this.plugins}_get(t,n,i){const r=n.get(t);if(r===void 0)throw new Error('"'+t+'" is not a registered '+i+".");return r}}var ei=new OT;class ST{constructor(){this._init=[]}notify(t,n,i,r){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=r?this._descriptors(t).filter(r):this._descriptors(t),l=this._notify(o,t,n,i);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),l}_notify(t,n,i,r){r=r||{};for(const o of t){const l=o.plugin,u=l[i],c=[n,r,o.options];if(le(u,c,l)===!1&&r.cancelable)return!1}return!0}invalidate(){me(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const i=t&&t.config,r=Zt(i.options&&i.options.plugins,{}),o=PT(i);return r===!1&&!n?[]:CT(t,o,r,n)}_notifyStateChanges(t){const n=this._oldCache||[],i=this._cache,r=(o,l)=>o.filter(u=>!l.some(c=>u.plugin.id===c.plugin.id));this._notify(r(n,i),t,"stop"),this._notify(r(i,n),t,"start")}}function PT(e){const t={},n=[],i=Object.keys(ei.plugins.items);for(let o=0;o<i.length;o++)n.push(ei.getPlugin(i[o]));const r=e.plugins||[];for(let o=0;o<r.length;o++){const l=r[o];n.indexOf(l)===-1&&(n.push(l),t[l.id]=!0)}return{plugins:n,localIds:t}}function MT(e,t){return!t&&e===!1?null:e===!0?{}:e}function CT(e,{plugins:t,localIds:n},i,r){const o=[],l=e.getContext();for(const u of t){const c=u.id,h=MT(i[c],r);h!==null&&o.push({plugin:u,options:AT(e.config,{plugin:u,local:n[c]},h,l)})}return o}function AT(e,{plugin:t,local:n},i,r){const o=e.pluginScopeKeys(t),l=e.getOptionScopes(i,o);return n&&t.defaults&&l.push(t.defaults),e.createResolver(l,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function vc(e,t){const n=Ce.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function TT(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function ET(e,t){return e===t?"_index_":"_value_"}function IT(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Qa(e,t){if(e==="x"||e==="y"||e==="r"||(e=t.axis||IT(t.position)||e.length>1&&Qa(e[0].toLowerCase(),t),e))return e;throw new Error(` + "`" + `Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.` + "`" + `)}function DT(e,t){const n=Mr[e.type]||{scales:{}},i=t.scales||{},r=vc(e.type,t),o=Object.create(null);return Object.keys(i).forEach(l=>{const u=i[l];if(!Gt(u))return console.error(` + "`" + `Invalid scale configuration for scale: ${l}` + "`" + `);if(u._proxy)return console.warn(` + "`" + `Ignoring resolver passed as options for scale: ${l}` + "`" + `);const c=Qa(l,u),h=ET(c,r),d=n.scales||{};o[l]=Ys(Object.create(null),[{axis:c},u,d[c],d[h]])}),e.data.datasets.forEach(l=>{const u=l.type||e.type,c=l.indexAxis||vc(u,t),d=(Mr[u]||{}).scales||{};Object.keys(d).forEach(g=>{const _=TT(g,c),m=l[_+"AxisID"]||_;o[m]=o[m]||Object.create(null),Ys(o[m],[{axis:_},i[m],d[g]])})}),Object.keys(o).forEach(l=>{const u=o[l];Ys(u,[Ce.scales[u.type],Ce.scale])}),o}function Av(e){const t=e.options||(e.options={});t.plugins=Zt(t.plugins,{}),t.scales=DT(e,t)}function Tv(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function LT(e){return e=e||{},e.data=Tv(e.data),Av(e),e}const ag=new Map,Ev=new Set;function ba(e,t){let n=ag.get(e);return n||(n=t(),ag.set(e,n),Ev.add(n)),n}const Rs=(e,t,n)=>{const i=ro(t,n);i!==void 0&&e.add(i)};class $T{constructor(t){this._config=LT(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Tv(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Av(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return ba(t,()=>[[` + "`" + `datasets.${t}` + "`" + `,""]])}datasetAnimationScopeKeys(t,n){return ba(` + "`" + `${t}.transition.${n}` + "`" + `,()=>[[` + "`" + `datasets.${t}.transitions.${n}` + "`" + `,` + "`" + `transitions.${n}` + "`" + `],[` + "`" + `datasets.${t}` + "`" + `,""]])}datasetElementScopeKeys(t,n){return ba(` + "`" + `${t}-${n}` + "`" + `,()=>[[` + "`" + `datasets.${t}.elements.${n}` + "`" + `,` + "`" + `datasets.${t}` + "`" + `,` + "`" + `elements.${n}` + "`" + `,""]])}pluginScopeKeys(t){const n=t.id,i=this.type;return ba(` + "`" + `${i}-plugin-${n}` + "`" + `,()=>[[` + "`" + `plugins.${n}` + "`" + `,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const i=this._scopeCache;let r=i.get(t);return(!r||n)&&(r=new Map,i.set(t,r)),r}getOptionScopes(t,n,i){const{options:r,type:o}=this,l=this._cachedScopes(t,i),u=l.get(n);if(u)return u;const c=new Set;n.forEach(d=>{t&&(c.add(t),d.forEach(g=>Rs(c,t,g))),d.forEach(g=>Rs(c,r,g)),d.forEach(g=>Rs(c,Mr[o]||{},g)),d.forEach(g=>Rs(c,Ce,g)),d.forEach(g=>Rs(c,mc,g))});const h=Array.from(c);return h.length===0&&h.push(Object.create(null)),Ev.has(n)&&l.set(n,h),h}chartOptionScopes(){const{options:t,type:n}=this;return[t,Mr[n]||{},Ce.datasets[n]||{},{type:n},Ce,mc]}resolveNamedOptions(t,n,i,r=[""]){const o={$shared:!0},{resolver:l,subPrefixes:u}=lg(this._resolverCache,t,r);let c=l;if(kT(l,n)){o.$shared=!1,i=qi(i)?i():i;const h=this.createResolver(t,i,u);c=as(l,i,h)}for(const h of n)o[h]=c[h];return o}createResolver(t,n,i=[""],r){const{resolver:o}=lg(this._resolverCache,t,i);return Gt(n)?as(o,n,void 0,r):o}}function lg(e,t,n){let i=e.get(t);i||(i=new Map,e.set(t,i));const r=n.join();let o=i.get(r);return o||(o={resolver:cf(t,n),subPrefixes:n.filter(u=>!u.toLowerCase().includes("hover"))},i.set(r,o)),o}const RT=e=>Gt(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||qi(e[n]),!1);function kT(e,t){const{isScriptable:n,isIndexable:i}=pv(e);for(const r of t){const o=n(r),l=i(r),u=(l||o)&&e[r];if(o&&(qi(u)||RT(u))||l&&be(u))return!0}return!1}var FT="4.0.1";const BT=["top","bottom","left","right","chartArea"];function ug(e,t){return e==="top"||e==="bottom"||BT.indexOf(e)===-1&&t==="x"}function cg(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}function fg(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),le(n&&n.onComplete,[e],t)}function HT(e){const t=e.chart,n=t.options.animation;le(n&&n.onProgress,[e],t)}function Iv(e){return vv()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const La={},hg=e=>{const t=Iv(e);return Object.values(La).filter(n=>n.canvas===t).pop()};function zT(e,t,n){const i=Object.keys(e);for(const r of i){const o=+r;if(o>=t){const l=e[r];delete e[r],(n>0||o>t)&&(e[o+n]=l)}}}function NT(e,t,n,i){return!n||e.type==="mouseout"?null:i?t:e}function WT(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}class zi{static register(...t){ei.add(...t),dg()}static unregister(...t){ei.remove(...t),dg()}constructor(t,n){const i=this.config=new $T(n),r=Iv(t),o=hg(r);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const l=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||oT(r)),this.platform.updateConfig(i);const u=this.platform.acquireContext(r,l.aspectRatio),c=u&&u.canvas,h=c&&c.height,d=c&&c.width;if(this.id=G2(),this.ctx=u,this.canvas=c,this.width=d,this.height=h,this._options=l,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new ST,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=hC(g=>this.update(g),l.resizeDelay||0),this._dataChanges=[],La[this.id]=this,!u||!c){console.error("Failed to create chart: can't acquire context from the given item");return}wi.listen(this,"complete",fg),wi.listen(this,"progress",HT),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:i,height:r,_aspectRatio:o}=this;return me(t)?n&&o?o:r?i/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return ei}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Up(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Hp(this.canvas,this.ctx),this}stop(){return wi.stop(this),this}resize(t,n){wi.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const i=this.options,r=this.canvas,o=i.maintainAspectRatio&&this.aspectRatio,l=this.platform.getMaximumSize(r,t,n,o),u=i.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=l.width,this.height=l.height,this._aspectRatio=this.aspectRatio,Up(this,u,!0)&&(this.notifyPlugins("resize",{size:l}),le(i.onResize,[this,l],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};ie(n,(i,r)=>{i.id=r})}buildOrUpdateScales(){const t=this.options,n=t.scales,i=this.scales,r=Object.keys(i).reduce((l,u)=>(l[u]=!1,l),{});let o=[];n&&(o=o.concat(Object.keys(n).map(l=>{const u=n[l],c=Qa(l,u),h=c==="r",d=c==="x";return{options:u,dposition:h?"chartArea":d?"bottom":"left",dtype:h?"radialLinear":d?"category":"linear"}}))),ie(o,l=>{const u=l.options,c=u.id,h=Qa(c,u),d=Zt(u.type,l.dtype);(u.position===void 0||ug(u.position,h)!==ug(l.dposition))&&(u.position=l.dposition),r[c]=!0;let g=null;if(c in i&&i[c].type===d)g=i[c];else{const _=ei.getScale(d);g=new _({id:c,type:d,ctx:this.ctx,chart:this}),i[g.id]=g}g.init(u,t)}),ie(r,(l,u)=>{l||delete i[u]}),ie(i,l=>{Rn.configure(this,l,l.options),Rn.addBox(this,l)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,i=t.length;if(t.sort((r,o)=>r.index-o.index),i>n){for(let r=n;r<i;++r)this._destroyDatasetMeta(r);t.splice(n,i-n)}this._sortedMetasets=t.slice(0).sort(cg("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((i,r)=>{n.filter(o=>o===i._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let i,r;for(this._removeUnreferencedMetasets(),i=0,r=n.length;i<r;i++){const o=n[i];let l=this.getDatasetMeta(i);const u=o.type||this.config.type;if(l.type&&l.type!==u&&(this._destroyDatasetMeta(i),l=this.getDatasetMeta(i)),l.type=u,l.indexAxis=o.indexAxis||vc(u,this.options),l.order=o.order||0,l.index=i,l.label=""+o.label,l.visible=this.isDatasetVisible(i),l.controller)l.controller.updateIndex(i),l.controller.linkScales();else{const c=ei.getController(u),{datasetElementType:h,dataElementType:d}=Ce.datasets[u];Object.assign(c,{dataElementType:ei.getElement(d),datasetElementType:h&&ei.getElement(h)}),l.controller=new c(this,i),t.push(l.controller)}}return this._updateMetasets(),t}_resetElements(){ie(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let l=0;for(let h=0,d=this.data.datasets.length;h<d;h++){const{controller:g}=this.getDatasetMeta(h),_=!r&&o.indexOf(g)===-1;g.buildOrUpdateElements(_),l=Math.max(+g.getMaxOverflow(),l)}l=this._minPadding=i.layout.autoPadding?l:0,this._updateLayout(l),r||ie(o,h=>{h.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(cg("z","_idx"));const{_active:u,_lastEvent:c}=this;c?this._eventHandler(c,!0):u.length&&this._updateHoverStyles(u,u,!0),this.render()}_updateScales(){ie(this.scales,t=>{Rn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!Pp(n,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:r,count:o}of n){const l=i==="_removeElements"?-o:o;zT(t,r,l)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=o=>new Set(t.filter(l=>l[0]===o).map((l,u)=>u+","+l.splice(1).join(","))),r=i(0);for(let o=1;o<n;o++)if(!Pp(r,i(o)))return;return Array.from(r).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Rn.update(this,this.width,this.height,t);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],ie(this.boxes,r=>{i&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,o)=>{r._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n<i;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,i=this.data.datasets.length;n<i;++n)this._updateDataset(n,qi(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const i=this.getDatasetMeta(t),r={meta:i,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",r)!==!1&&(i.controller._update(n),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(wi.has(this)?this.attached&&!wi.running(this)&&wi.start(this):(this.draw(),fg({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:i,height:r}=this._resizeBeforeDraw;this._resize(i,r),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,i=[];let r,o;for(r=0,o=n.length;r<o;++r){const l=n[r];(!t||l.visible)&&i.push(l)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,i=t._clip,r=!i.disabled,o=WT(t)||this.chartArea,l={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",l)!==!1&&(r&&af(n,{left:i.left===!1?0:o.left-i.left,right:i.right===!1?this.width:o.right+i.right,top:i.top===!1?0:o.top-i.top,bottom:i.bottom===!1?this.height:o.bottom+i.bottom}),t.controller.draw(),r&&lf(n),l.cancelable=!1,this.notifyPlugins("afterDatasetDraw",l))}isPointInArea(t){return dv(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,i,r){const o=HA.modes[n];return typeof o=="function"?o(this,t,i,r):[]}getDatasetMeta(t){const n=this.data.datasets[t],i=this._metasets;let r=i.filter(o=>o&&o._dataset===n).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},i.push(r)),r}getContext(){return this.$context||(this.$context=Ar(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(t,n){const i=this.getDatasetMeta(t);i.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,i){const r=i?"show":"hide",o=this.getDatasetMeta(t),l=o.controller._resolveAnimations(void 0,r);Xn(n)?(o.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),l.update(o,{visible:i}),this.update(u=>u.datasetIndex===t?r:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),wi.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Hp(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete La[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,i=(o,l)=>{n.addEventListener(this,o,l),t[o]=l},r=(o,l,u)=>{o.offsetX=l,o.offsetY=u,this._eventHandler(o)};ie(this.options.events,o=>i(o,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,i=(c,h)=>{n.addEventListener(this,c,h),t[c]=h},r=(c,h)=>{t[c]&&(n.removeEventListener(this,c,h),delete t[c])},o=(c,h)=>{this.canvas&&this.resize(c,h)};let l;const u=()=>{r("attach",u),this.attached=!0,this.resize(),i("resize",o),i("detach",l)};l=()=>{this.attached=!1,r("resize",o),this._stop(),this._resize(0,0),i("attach",u)},n.isAttached(this.canvas)?u():l()}unbindEvents(){ie(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},ie(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,i){const r=i?"set":"remove";let o,l,u,c;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+r+"DatasetHoverStyle"]()),u=0,c=t.length;u<c;++u){l=t[u];const h=l&&this.getDatasetMeta(l.datasetIndex).controller;h&&h[r+"HoverStyle"](l.element,l.datasetIndex,l.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],i=t.map(({datasetIndex:o,index:l})=>{const u=this.getDatasetMeta(o);if(!u)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:u.data[l],index:l}});!Wa(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(t,n,i){return this._plugins.notify(this,t,n,i)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,i){const r=this.options.hover,o=(c,h)=>c.filter(d=>!h.some(g=>d.datasetIndex===g.datasetIndex&&d.index===g.index)),l=o(n,t),u=i?t:o(t,n);l.length&&this.updateHoverStyle(l,r.mode,!1),u.length&&r.mode&&this.updateHoverStyle(u,r.mode,!0)}_eventHandler(t,n){const i={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},r=l=>(l.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,r)===!1)return;const o=this._handleEvent(t,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,r),(o||i.changed)&&this.render(),this}_handleEvent(t,n,i){const{_active:r=[],options:o}=this,l=n,u=this._getActiveElements(t,r,i,l),c=nC(t),h=NT(t,this._lastEvent,i,c);i&&(this._lastEvent=null,le(o.onHover,[t,u,this],this),c&&le(o.onClick,[t,u,this],this));const d=!Wa(u,r);return(d||n)&&(this._active=u,this._updateHoverStyles(u,r,n)),this._lastEvent=h,d}_getActiveElements(t,n,i,r){if(t.type==="mouseout")return[];if(!i)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,r)}}Ut(zi,"defaults",Ce),Ut(zi,"instances",La),Ut(zi,"overrides",Mr),Ut(zi,"registry",ei),Ut(zi,"version",FT),Ut(zi,"getChart",hg);function dg(){return ie(zi.instances,e=>e._plugins.invalidate())}var tl=zi;function UT(e,t,n){const{startAngle:i,pixelMargin:r,x:o,y:l,outerRadius:u,innerRadius:c}=t;let h=r/u;e.beginPath(),e.arc(o,l,u,i-h,n+h),c>r?(h=r/c,e.arc(o,l,c,n+h,i-h,!0)):e.arc(o,l,r,n+Se,i-Se),e.closePath(),e.clip()}function VT(e){return uf(e,["outerStart","outerEnd","innerStart","innerEnd"])}function jT(e,t,n,i){const r=VT(e.options.borderRadius),o=(n-t)/2,l=Math.min(o,i*t/2),u=c=>{const h=(n-Math.min(o,c))*i/2;return wn(c,0,Math.min(o,h))};return{outerStart:u(r.outerStart),outerEnd:u(r.outerEnd),innerStart:wn(r.innerStart,0,l),innerEnd:wn(r.innerEnd,0,l)}}function Xr(e,t,n,i){return{x:n+e*Math.cos(t),y:i+e*Math.sin(t)}}function el(e,t,n,i,r,o){const{x:l,y:u,startAngle:c,pixelMargin:h,innerRadius:d}=t,g=Math.max(t.outerRadius+i+n-h,0),_=d>0?d+i+n+h:0;let m=0;const x=r-c;if(i){const K=d>0?d-i:0,st=g>0?g-i:0,E=(K+st)/2,B=E!==0?x*E/(E+i):x;m=(x-B)/2}const b=Math.max(.001,x*g-n/Ae)/g,O=(x-b)/2,C=c+O+m,L=r-O-m,{outerStart:A,outerEnd:k,innerStart:$,innerEnd:U}=jT(t,_,g,L-C),F=g-A,N=g-k,J=C+A/F,it=L-k/N,dt=_+$,Pt=_+U,ut=C+$/dt,rt=L-U/Pt;if(e.beginPath(),o){const K=(J+it)/2;if(e.arc(l,u,g,J,K),e.arc(l,u,g,K,it),k>0){const Z=Xr(N,it,l,u);e.arc(Z.x,Z.y,k,it,L+Se)}const st=Xr(Pt,L,l,u);if(e.lineTo(st.x,st.y),U>0){const Z=Xr(Pt,rt,l,u);e.arc(Z.x,Z.y,U,L+Se,rt+Math.PI)}const E=(L-U/_+(C+$/_))/2;if(e.arc(l,u,_,L-U/_,E,!0),e.arc(l,u,_,E,C+$/_,!0),$>0){const Z=Xr(dt,ut,l,u);e.arc(Z.x,Z.y,$,ut+Math.PI,C-Se)}const B=Xr(F,C,l,u);if(e.lineTo(B.x,B.y),A>0){const Z=Xr(F,J,l,u);e.arc(Z.x,Z.y,A,C-Se,J)}}else{e.moveTo(l,u);const K=Math.cos(J)*g+l,st=Math.sin(J)*g+u;e.lineTo(K,st);const E=Math.cos(it)*g+l,B=Math.sin(it)*g+u;e.lineTo(E,B)}e.closePath()}function YT(e,t,n,i,r){const{fullCircles:o,startAngle:l,circumference:u}=t;let c=t.endAngle;if(o){el(e,t,n,i,c,r);for(let h=0;h<o;++h)e.fill();isNaN(u)||(c=l+(u%Oe||Oe))}return el(e,t,n,i,c,r),e.fill(),c}function KT(e,t,n,i,r){const{fullCircles:o,startAngle:l,circumference:u,options:c}=t,{borderWidth:h,borderJoinStyle:d}=c,g=c.borderAlign==="inner";if(!h)return;g?(e.lineWidth=h*2,e.lineJoin=d||"round"):(e.lineWidth=h,e.lineJoin=d||"bevel");let _=t.endAngle;if(o){el(e,t,n,i,_,r);for(let m=0;m<o;++m)e.stroke();isNaN(u)||(_=l+(u%Oe||Oe))}g&&UT(e,t,_),o||(el(e,t,n,i,_,r),e.stroke())}class $a extends Gi{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,n,i){const r=this.getProps(["x","y"],i),{angle:o,distance:l}=nv(r,{x:t,y:n}),{startAngle:u,endAngle:c,innerRadius:h,outerRadius:d,circumference:g}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),_=this.options.spacing/2,x=Zt(g,c-u)>=Oe||Ka(o,u,c),b=Fs(l,h+_,d+_);return x&&b}getCenterPoint(t){const{x:n,y:i,startAngle:r,endAngle:o,innerRadius:l,outerRadius:u}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:c,spacing:h}=this.options,d=(r+o)/2,g=(l+u+h+c)/2;return{x:n+Math.cos(d)*g,y:i+Math.sin(d)*g}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:n,circumference:i}=this,r=(n.offset||0)/4,o=(n.spacing||0)/2,l=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=i>Oe?Math.floor(i/Oe):0,i===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const u=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(u)*r,Math.sin(u)*r);const c=1-Math.sin(Math.min(Ae,i||0)),h=r*c;t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,YT(t,this,h,o,l),KT(t,this,h,o,l),t.restore()}}Ut($a,"id","arc"),Ut($a,"defaults",{borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),Ut($a,"defaultRoutes",{backgroundColor:"backgroundColor"});const pg=(e,t)=>{let{boxHeight:n=t,boxWidth:i=t}=e;return e.usePointStyle&&(n=Math.min(n,t),i=e.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(t,n)}},XT=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class gg extends Gi{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,i){this.maxWidth=t,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=le(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(i=>t.filter(i,this.chart.data))),t.sort&&(n=n.sort((i,r)=>t.sort(i,r,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const i=t.labels,r=Ie(i.font),o=r.size,l=this._computeTitleHeight(),{boxWidth:u,itemHeight:c}=pg(i,o);let h,d;n.font=r.string,this.isHorizontal()?(h=this.maxWidth,d=this._fitRows(l,o,u,c)+10):(d=this.maxHeight,h=this._fitCols(l,r,u,c)+10),this.width=Math.min(h,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,i,r){const{ctx:o,maxWidth:l,options:{labels:{padding:u}}}=this,c=this.legendHitBoxes=[],h=this.lineWidths=[0],d=r+u;let g=t;o.textAlign="left",o.textBaseline="middle";let _=-1,m=-d;return this.legendItems.forEach((x,b)=>{const O=i+n/2+o.measureText(x.text).width;(b===0||h[h.length-1]+O+2*u>l)&&(g+=d,h[h.length-(b>0?0:1)]=0,m+=d,_++),c[b]={left:0,top:m,row:_,width:O,height:r},h[h.length-1]+=O+u}),g}_fitCols(t,n,i,r){const{ctx:o,maxHeight:l,options:{labels:{padding:u}}}=this,c=this.legendHitBoxes=[],h=this.columnSizes=[],d=l-t;let g=u,_=0,m=0,x=0,b=0;return this.legendItems.forEach((O,C)=>{const{itemWidth:L,itemHeight:A}=qT(i,n,o,O,r);C>0&&m+A+2*u>d&&(g+=_+u,h.push({width:_,height:m}),x+=_+u,b++,_=m=0),c[C]={left:x,top:m,col:b,width:L,height:A},_=Math.max(_,L),m+=A+u}),g+=_,h.push({width:_,height:m}),g}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:r},rtl:o}}=this,l=ns(o,this.left,this.width);if(this.isHorizontal()){let u=0,c=Ue(i,this.left+r,this.right-this.lineWidths[u]);for(const h of n)u!==h.row&&(u=h.row,c=Ue(i,this.left+r,this.right-this.lineWidths[u])),h.top+=this.top+t+r,h.left=l.leftForLtr(l.x(c),h.width),c+=h.width+r}else{let u=0,c=Ue(i,this.top+t+r,this.bottom-this.columnSizes[u].height);for(const h of n)h.col!==u&&(u=h.col,c=Ue(i,this.top+t+r,this.bottom-this.columnSizes[u].height)),h.top=c,h.left+=this.left+r,h.left=l.leftForLtr(l.x(h.left),h.width),c+=h.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;af(t,this),this._draw(),lf(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:i,ctx:r}=this,{align:o,labels:l}=t,u=Ce.color,c=ns(t.rtl,this.left,this.width),h=Ie(l.font),{padding:d}=l,g=h.size,_=g/2;let m;this.drawTitle(),r.textAlign=c.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=h.string;const{boxWidth:x,boxHeight:b,itemHeight:O}=pg(l,g),C=function(U,F,N){if(isNaN(x)||x<=0||isNaN(b)||b<0)return;r.save();const J=Zt(N.lineWidth,1);if(r.fillStyle=Zt(N.fillStyle,u),r.lineCap=Zt(N.lineCap,"butt"),r.lineDashOffset=Zt(N.lineDashOffset,0),r.lineJoin=Zt(N.lineJoin,"miter"),r.lineWidth=J,r.strokeStyle=Zt(N.strokeStyle,u),r.setLineDash(Zt(N.lineDash,[])),l.usePointStyle){const it={radius:b*Math.SQRT2/2,pointStyle:N.pointStyle,rotation:N.rotation,borderWidth:J},dt=c.xPlus(U,x/2),Pt=F+_;hv(r,it,dt,Pt,l.pointStyleWidth&&x)}else{const it=F+Math.max((g-b)/2,0),dt=c.leftForLtr(U,x),Pt=es(N.borderRadius);r.beginPath(),Object.values(Pt).some(ut=>ut!==0)?Ga(r,{x:dt,y:it,w:x,h:b,radius:Pt}):r.rect(dt,it,x,b),r.fill(),J!==0&&r.stroke()}r.restore()},L=function(U,F,N){Cr(r,N.text,U,F+O/2,h,{strikethrough:N.hidden,textAlign:c.textAlign(N.textAlign)})},A=this.isHorizontal(),k=this._computeTitleHeight();A?m={x:Ue(o,this.left+d,this.right-i[0]),y:this.top+d+k,line:0}:m={x:this.left+d,y:Ue(o,this.top+k+d,this.bottom-n[0].height),line:0},bv(this.ctx,t.textDirection);const $=O+d;this.legendItems.forEach((U,F)=>{r.strokeStyle=U.fontColor,r.fillStyle=U.fontColor;const N=r.measureText(U.text).width,J=c.textAlign(U.textAlign||(U.textAlign=l.textAlign)),it=x+_+N;let dt=m.x,Pt=m.y;c.setWidth(this.width),A?F>0&&dt+it+d>this.right&&(Pt=m.y+=$,m.line++,dt=m.x=Ue(o,this.left+d,this.right-i[m.line])):F>0&&Pt+$>this.bottom&&(dt=m.x=dt+n[m.line].width+d,m.line++,Pt=m.y=Ue(o,this.top+k+d,this.bottom-n[m.line].height));const ut=c.x(dt);if(C(ut,Pt,U),dt=dC(J,dt+x+_,A?dt+it:this.right,t.rtl),L(c.x(dt),Pt,U),A)m.x+=it+d;else if(typeof U.text!="string"){const rt=h.lineHeight;m.y+=Dv(U,rt)}else m.y+=$}),yv(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,i=Ie(n.font),r=Xe(n.padding);if(!n.display)return;const o=ns(t.rtl,this.left,this.width),l=this.ctx,u=n.position,c=i.size/2,h=r.top+c;let d,g=this.left,_=this.width;if(this.isHorizontal())_=Math.max(...this.lineWidths),d=this.top+h,g=Ue(t.align,g,this.right-_);else{const x=this.columnSizes.reduce((b,O)=>Math.max(b,O.height),0);d=h+Ue(t.align,this.top,this.bottom-x-t.labels.padding-this._computeTitleHeight())}const m=Ue(u,g,g+_);l.textAlign=o.textAlign(nf(u)),l.textBaseline="middle",l.strokeStyle=n.color,l.fillStyle=n.color,l.font=i.string,Cr(l,n.text,m,d,i)}_computeTitleHeight(){const t=this.options.title,n=Ie(t.font),i=Xe(t.padding);return t.display?n.lineHeight+i.height:0}_getLegendItemAt(t,n){let i,r,o;if(Fs(t,this.left,this.right)&&Fs(n,this.top,this.bottom)){for(o=this.legendHitBoxes,i=0;i<o.length;++i)if(r=o[i],Fs(t,r.left,r.left+r.width)&&Fs(n,r.top,r.top+r.height))return this.legendItems[i]}return null}handleEvent(t){const n=this.options;if(!ZT(t.type,n))return;const i=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const r=this._hoveredItem,o=XT(r,i);r&&!o&&le(n.onLeave,[t,r,this],this),this._hoveredItem=i,i&&!o&&le(n.onHover,[t,i,this],this)}else i&&le(n.onClick,[t,i,this],this)}}function qT(e,t,n,i,r){const o=GT(i,e,t,n),l=JT(r,i,t.lineHeight);return{itemWidth:o,itemHeight:l}}function GT(e,t,n,i){let r=e.text;return r&&typeof r!="string"&&(r=r.reduce((o,l)=>o.length>l.length?o:l)),t+n.size/2+i.measureText(r).width}function JT(e,t,n){let i=e;return typeof t.text!="string"&&(i=Dv(t,n)),i}function Dv(e,t){const n=e.text?e.text.length+.5:0;return t*n}function ZT(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var QT={id:"legend",_element:gg,start(e,t,n){const i=e.legend=new gg({ctx:e.ctx,options:n,chart:e});Rn.configure(e,i,n),Rn.addBox(e,i)},stop(e){Rn.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const i=e.legend;Rn.configure(e,i,n),i.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const i=t.datasetIndex,r=n.chart;r.isDatasetVisible(i)?(r.hide(i),t.hidden=!0):(r.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:r,color:o,useBorderRadius:l,borderRadius:u}}=e.legend.options;return e._getSortedDatasetMetas().map(c=>{const h=c.controller.getStyle(n?0:void 0),d=Xe(h.borderWidth);return{text:t[c.index].label,fillStyle:h.backgroundColor,fontColor:o,hidden:!c.visible,lineCap:h.borderCapStyle,lineDash:h.borderDash,lineDashOffset:h.borderDashOffset,lineJoin:h.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:h.borderColor,pointStyle:i||h.pointStyle,rotation:h.rotation,textAlign:r||h.textAlign,borderRadius:l&&(u||h.borderRadius),datasetIndex:c.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Lv extends Gi{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const r=be(i.text)?i.text.length:1;this._padding=Xe(i.padding);const o=r*Ie(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:i,bottom:r,right:o,options:l}=this,u=l.align;let c=0,h,d,g;return this.isHorizontal()?(d=Ue(u,i,o),g=n+t,h=o-i):(l.position==="left"?(d=i+t,g=Ue(u,r,n),c=Ae*-.5):(d=o-t,g=Ue(u,n,r),c=Ae*.5),h=r-n),{titleX:d,titleY:g,maxWidth:h,rotation:c}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const i=Ie(n.font),o=i.lineHeight/2+this._padding.top,{titleX:l,titleY:u,maxWidth:c,rotation:h}=this._drawArgs(o);Cr(t,n.text,0,0,i,{color:n.color,maxWidth:c,rotation:h,textAlign:nf(n.align),textBaseline:"middle",translation:[l,u]})}}function tE(e,t){const n=new Lv({ctx:e.ctx,options:t,chart:e});Rn.configure(e,n,t),Rn.addBox(e,n),e.titleBlock=n}var eE={id:"title",_element:Lv,start(e,t,n){tE(e,n)},stop(e){const t=e.titleBlock;Rn.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const i=e.titleBlock;Rn.configure(e,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Ns={average(e){if(!e.length)return!1;let t,n,i=0,r=0,o=0;for(t=0,n=e.length;t<n;++t){const l=e[t].element;if(l&&l.hasValue()){const u=l.tooltipPosition();i+=u.x,r+=u.y,++o}}return{x:i/o,y:r/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,i=t.y,r=Number.POSITIVE_INFINITY,o,l,u;for(o=0,l=e.length;o<l;++o){const c=e[o].element;if(c&&c.hasValue()){const h=c.getCenterPoint(),d=oC(t,h);d<r&&(r=d,u=c)}}if(u){const c=u.tooltipPosition();n=c.x,i=c.y}return{x:n,y:i}}};function ti(e,t){return t&&(be(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Oi(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(` + "`" + `
` + "`" + `)>-1?e.split(` + "`" + `
` + "`" + `):e}function nE(e,t){const{element:n,datasetIndex:i,index:r}=t,o=e.getDatasetMeta(i).controller,{label:l,value:u}=o.getLabelAndValue(r);return{chart:e,label:l,parsed:o.getParsed(r),raw:e.data.datasets[i].data[r],formattedValue:u,dataset:o.getDataset(),dataIndex:r,datasetIndex:i,element:n}}function _g(e,t){const n=e.chart.ctx,{body:i,footer:r,title:o}=e,{boxWidth:l,boxHeight:u}=t,c=Ie(t.bodyFont),h=Ie(t.titleFont),d=Ie(t.footerFont),g=o.length,_=r.length,m=i.length,x=Xe(t.padding);let b=x.height,O=0,C=i.reduce((k,$)=>k+$.before.length+$.lines.length+$.after.length,0);if(C+=e.beforeBody.length+e.afterBody.length,g&&(b+=g*h.lineHeight+(g-1)*t.titleSpacing+t.titleMarginBottom),C){const k=t.displayColors?Math.max(u,c.lineHeight):c.lineHeight;b+=m*k+(C-m)*c.lineHeight+(C-1)*t.bodySpacing}_&&(b+=t.footerMarginTop+_*d.lineHeight+(_-1)*t.footerSpacing);let L=0;const A=function(k){O=Math.max(O,n.measureText(k).width+L)};return n.save(),n.font=h.string,ie(e.title,A),n.font=c.string,ie(e.beforeBody.concat(e.afterBody),A),L=t.displayColors?l+2+t.boxPadding:0,ie(i,k=>{ie(k.before,A),ie(k.lines,A),ie(k.after,A)}),L=0,n.font=d.string,ie(e.footer,A),n.restore(),O+=x.width,{width:O,height:b}}function iE(e,t){const{y:n,height:i}=t;return n<i/2?"top":n>e.height-i/2?"bottom":"center"}function rE(e,t,n,i){const{x:r,width:o}=i,l=n.caretSize+n.caretPadding;if(e==="left"&&r+o+l>t.width||e==="right"&&r-o-l<0)return!0}function sE(e,t,n,i){const{x:r,width:o}=n,{width:l,chartArea:{left:u,right:c}}=e;let h="center";return i==="center"?h=r<=(u+c)/2?"left":"right":r<=o/2?h="left":r>=l-o/2&&(h="right"),rE(h,e,t,n)&&(h="center"),h}function mg(e,t,n){const i=n.yAlign||t.yAlign||iE(e,n);return{xAlign:n.xAlign||t.xAlign||sE(e,t,n,i),yAlign:i}}function oE(e,t){let{x:n,width:i}=e;return t==="right"?n-=i:t==="center"&&(n-=i/2),n}function aE(e,t,n){let{y:i,height:r}=e;return t==="top"?i+=n:t==="bottom"?i-=r+n:i-=r/2,i}function vg(e,t,n,i){const{caretSize:r,caretPadding:o,cornerRadius:l}=e,{xAlign:u,yAlign:c}=n,h=r+o,{topLeft:d,topRight:g,bottomLeft:_,bottomRight:m}=es(l);let x=oE(t,u);const b=aE(t,c,h);return c==="center"?u==="left"?x+=h:u==="right"&&(x-=h):u==="left"?x-=Math.max(d,_)+r:u==="right"&&(x+=Math.max(g,m)+r),{x:wn(x,0,i.width-t.width),y:wn(b,0,i.height-t.height)}}function ya(e,t,n){const i=Xe(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-i.right:e.x+i.left}function bg(e){return ti([],Oi(e))}function lE(e,t,n){return Ar(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function yg(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const $v={beforeTitle:xi,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return n[t.dataIndex]}return""},afterTitle:xi,beforeBody:xi,beforeLabel:xi,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return me(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:xi,afterBody:xi,beforeFooter:xi,footer:xi,afterFooter:xi};function cn(e,t,n,i){const r=e[t].call(n,i);return typeof r>"u"?$v[t].call(n,i):r}class bc extends Gi{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,i=this.options.setContext(this.getContext()),r=i.enabled&&n.options.animation&&i.animations,o=new xv(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=lE(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:i}=n,r=cn(i,"beforeTitle",this,t),o=cn(i,"title",this,t),l=cn(i,"afterTitle",this,t);let u=[];return u=ti(u,Oi(r)),u=ti(u,Oi(o)),u=ti(u,Oi(l)),u}getBeforeBody(t,n){return bg(cn(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:i}=n,r=[];return ie(t,o=>{const l={before:[],lines:[],after:[]},u=yg(i,o);ti(l.before,Oi(cn(u,"beforeLabel",this,o))),ti(l.lines,cn(u,"label",this,o)),ti(l.after,Oi(cn(u,"afterLabel",this,o))),r.push(l)}),r}getAfterBody(t,n){return bg(cn(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:i}=n,r=cn(i,"beforeFooter",this,t),o=cn(i,"footer",this,t),l=cn(i,"afterFooter",this,t);let u=[];return u=ti(u,Oi(r)),u=ti(u,Oi(o)),u=ti(u,Oi(l)),u}_createItems(t){const n=this._active,i=this.chart.data,r=[],o=[],l=[];let u=[],c,h;for(c=0,h=n.length;c<h;++c)u.push(nE(this.chart,n[c]));return t.filter&&(u=u.filter((d,g,_)=>t.filter(d,g,_,i))),t.itemSort&&(u=u.sort((d,g)=>t.itemSort(d,g,i))),ie(u,d=>{const g=yg(t.callbacks,d);r.push(cn(g,"labelColor",this,d)),o.push(cn(g,"labelPointStyle",this,d)),l.push(cn(g,"labelTextColor",this,d))}),this.labelColors=r,this.labelPointStyles=o,this.labelTextColors=l,this.dataPoints=u,u}update(t,n){const i=this.options.setContext(this.getContext()),r=this._active;let o,l=[];if(!r.length)this.opacity!==0&&(o={opacity:0});else{const u=Ns[i.position].call(this,r,this._eventPosition);l=this._createItems(i),this.title=this.getTitle(l,i),this.beforeBody=this.getBeforeBody(l,i),this.body=this.getBody(l,i),this.afterBody=this.getAfterBody(l,i),this.footer=this.getFooter(l,i);const c=this._size=_g(this,i),h=Object.assign({},u,c),d=mg(this.chart,i,h),g=vg(i,h,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,o={opacity:1,x:g.x,y:g.y,width:c.width,height:c.height,caretX:u.x,caretY:u.y}}this._tooltipItems=l,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,i,r){const o=this.getCaretPosition(t,i,r);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,i){const{xAlign:r,yAlign:o}=this,{caretSize:l,cornerRadius:u}=i,{topLeft:c,topRight:h,bottomLeft:d,bottomRight:g}=es(u),{x:_,y:m}=t,{width:x,height:b}=n;let O,C,L,A,k,$;return o==="center"?(k=m+b/2,r==="left"?(O=_,C=O-l,A=k+l,$=k-l):(O=_+x,C=O+l,A=k-l,$=k+l),L=O):(r==="left"?C=_+Math.max(c,d)+l:r==="right"?C=_+x-Math.max(h,g)-l:C=this.caretX,o==="top"?(A=m,k=A-l,O=C-l,L=C+l):(A=m+b,k=A+l,O=C+l,L=C-l),$=A),{x1:O,x2:C,x3:L,y1:A,y2:k,y3:$}}drawTitle(t,n,i){const r=this.title,o=r.length;let l,u,c;if(o){const h=ns(i.rtl,this.x,this.width);for(t.x=ya(this,i.titleAlign,i),n.textAlign=h.textAlign(i.titleAlign),n.textBaseline="middle",l=Ie(i.titleFont),u=i.titleSpacing,n.fillStyle=i.titleColor,n.font=l.string,c=0;c<o;++c)n.fillText(r[c],h.x(t.x),t.y+l.lineHeight/2),t.y+=l.lineHeight+u,c+1===o&&(t.y+=i.titleMarginBottom-u)}}_drawColorBox(t,n,i,r,o){const l=this.labelColors[i],u=this.labelPointStyles[i],{boxHeight:c,boxWidth:h,boxPadding:d}=o,g=Ie(o.bodyFont),_=ya(this,"left",o),m=r.x(_),x=c<g.lineHeight?(g.lineHeight-c)/2:0,b=n.y+x;if(o.usePointStyle){const O={radius:Math.min(h,c)/2,pointStyle:u.pointStyle,rotation:u.rotation,borderWidth:1},C=r.leftForLtr(m,h)+h/2,L=b+c/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,zp(t,O,C,L),t.strokeStyle=l.borderColor,t.fillStyle=l.backgroundColor,zp(t,O,C,L)}else{t.lineWidth=Gt(l.borderWidth)?Math.max(...Object.values(l.borderWidth)):l.borderWidth||1,t.strokeStyle=l.borderColor,t.setLineDash(l.borderDash||[]),t.lineDashOffset=l.borderDashOffset||0;const O=r.leftForLtr(m,h-d),C=r.leftForLtr(r.xPlus(m,1),h-d-2),L=es(l.borderRadius);Object.values(L).some(A=>A!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Ga(t,{x:O,y:b,w:h,h:c,radius:L}),t.fill(),t.stroke(),t.fillStyle=l.backgroundColor,t.beginPath(),Ga(t,{x:C,y:b+1,w:h-2,h:c-2,radius:L}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(O,b,h,c),t.strokeRect(O,b,h,c),t.fillStyle=l.backgroundColor,t.fillRect(C,b+1,h-2,c-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,n,i){const{body:r}=this,{bodySpacing:o,bodyAlign:l,displayColors:u,boxHeight:c,boxWidth:h,boxPadding:d}=i,g=Ie(i.bodyFont);let _=g.lineHeight,m=0;const x=ns(i.rtl,this.x,this.width),b=function(N){n.fillText(N,x.x(t.x+m),t.y+_/2),t.y+=_+o},O=x.textAlign(l);let C,L,A,k,$,U,F;for(n.textAlign=l,n.textBaseline="middle",n.font=g.string,t.x=ya(this,O,i),n.fillStyle=i.bodyColor,ie(this.beforeBody,b),m=u&&O!=="right"?l==="center"?h/2+d:h+2+d:0,k=0,U=r.length;k<U;++k){for(C=r[k],L=this.labelTextColors[k],n.fillStyle=L,ie(C.before,b),A=C.lines,u&&A.length&&(this._drawColorBox(n,t,k,x,i),_=Math.max(g.lineHeight,c)),$=0,F=A.length;$<F;++$)b(A[$]),_=g.lineHeight;ie(C.after,b)}m=0,_=g.lineHeight,ie(this.afterBody,b),t.y-=o}drawFooter(t,n,i){const r=this.footer,o=r.length;let l,u;if(o){const c=ns(i.rtl,this.x,this.width);for(t.x=ya(this,i.footerAlign,i),t.y+=i.footerMarginTop,n.textAlign=c.textAlign(i.footerAlign),n.textBaseline="middle",l=Ie(i.footerFont),n.fillStyle=i.footerColor,n.font=l.string,u=0;u<o;++u)n.fillText(r[u],c.x(t.x),t.y+l.lineHeight/2),t.y+=l.lineHeight+i.footerSpacing}}drawBackground(t,n,i,r){const{xAlign:o,yAlign:l}=this,{x:u,y:c}=t,{width:h,height:d}=i,{topLeft:g,topRight:_,bottomLeft:m,bottomRight:x}=es(r.cornerRadius);n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,n.lineWidth=r.borderWidth,n.beginPath(),n.moveTo(u+g,c),l==="top"&&this.drawCaret(t,n,i,r),n.lineTo(u+h-_,c),n.quadraticCurveTo(u+h,c,u+h,c+_),l==="center"&&o==="right"&&this.drawCaret(t,n,i,r),n.lineTo(u+h,c+d-x),n.quadraticCurveTo(u+h,c+d,u+h-x,c+d),l==="bottom"&&this.drawCaret(t,n,i,r),n.lineTo(u+m,c+d),n.quadraticCurveTo(u,c+d,u,c+d-m),l==="center"&&o==="left"&&this.drawCaret(t,n,i,r),n.lineTo(u,c+g),n.quadraticCurveTo(u,c,u+g,c),n.closePath(),n.fill(),r.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,i=this.$animations,r=i&&i.x,o=i&&i.y;if(r||o){const l=Ns[t.position].call(this,this._active,this._eventPosition);if(!l)return;const u=this._size=_g(this,t),c=Object.assign({},l,this._size),h=mg(n,t,c),d=vg(t,c,h,n);(r._to!==d.x||o._to!==d.y)&&(this.xAlign=h.xAlign,this.yAlign=h.yAlign,this.width=u.width,this.height=u.height,this.caretX=l.x,this.caretY=l.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const r={width:this.width,height:this.height},o={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const l=Xe(n.padding),u=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&u&&(t.save(),t.globalAlpha=i,this.drawBackground(o,t,r,n),bv(t,n.textDirection),o.y+=l.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),yv(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const i=this._active,r=t.map(({datasetIndex:u,index:c})=>{const h=this.chart.getDatasetMeta(u);if(!h)throw new Error("Cannot find a dataset at index "+u);return{datasetIndex:u,element:h.data[c],index:c}}),o=!Wa(i,r),l=this._positionChanged(r,n);(o||l)&&(this._active=r,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,o=this._active||[],l=this._getActiveElements(t,o,n,i),u=this._positionChanged(l,t),c=n||!Wa(l,o)||u;return c&&(this._active=l,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),c}_getActiveElements(t,n,i,r){const o=this.options;if(t.type==="mouseout")return[];if(!r)return n;const l=this.chart.getElementsAtEventForMode(t,o.mode,o,i);return o.reverse&&l.reverse(),l}_positionChanged(t,n){const{caretX:i,caretY:r,options:o}=this,l=Ns[o.position].call(this,t,n);return l!==!1&&(i!==l.x||r!==l.y)}}Ut(bc,"positioners",Ns);var uE={id:"tooltip",_element:bc,positioners:Ns,afterInit(e,t,n){n&&(e.tooltip=new bc({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:$v},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const cE=(e,t,n,i)=>(typeof t=="string"?(n=e.push(t)-1,i.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function fE(e,t,n,i){const r=e.indexOf(t);if(r===-1)return cE(e,t,n,i);const o=e.lastIndexOf(t);return r!==o?n:r}const hE=(e,t)=>e===null?null:wn(Math.round(e),0,t);function xg(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class yc extends Tr{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const i=this.getLabels();for(const{index:r,label:o}of n)i[r]===o&&i.splice(r,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(me(t))return null;const i=this.getLabels();return n=isFinite(n)&&i[n]===t?n:fE(i,t,Zt(n,t),this._addedLabels),hE(n,i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:i,max:r}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(i=0),n||(r=this.getLabels().length-1)),this.min=i,this.max=r}buildTicks(){const t=this.min,n=this.max,i=this.options.offset,r=[];let o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let l=t;l<=n;l++)r.push({value:l});return r}getLabelForValue(t){return xg.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Ut(yc,"id","category"),Ut(yc,"defaults",{ticks:{callback:xg}});function dE(e,t){const n=[],{bounds:r,step:o,min:l,max:u,precision:c,count:h,maxTicks:d,maxDigits:g,includeBounds:_}=e,m=o||1,x=d-1,{min:b,max:O}=t,C=!me(l),L=!me(u),A=!me(h),k=(O-b)/(g+1);let $=Cp((O-b)/x/m)*m,U,F,N,J;if($<1e-14&&!C&&!L)return[{value:b},{value:O}];J=Math.ceil(O/$)-Math.floor(b/$),J>x&&($=Cp(J*$/x/m)*m),me(c)||(U=Math.pow(10,c),$=Math.ceil($*U)/U),r==="ticks"?(F=Math.floor(b/$)*$,N=Math.ceil(O/$)*$):(F=b,N=O),C&&L&&o&&sC((u-l)/o,$/1e3)?(J=Math.round(Math.min((u-l)/$,d)),$=(u-l)/J,F=l,N=u):A?(F=C?l:F,N=L?u:N,J=h-1,$=(N-F)/J):(J=(N-F)/$,Ea(J,Math.round(J),$/1e3)?J=Math.round(J):J=Math.ceil(J));const it=Math.max(Ap($),Ap(F));U=Math.pow(10,me(c)?it:c),F=Math.round(F*U)/U,N=Math.round(N*U)/U;let dt=0;for(C&&(_&&F!==l?(n.push({value:l}),F<l&&dt++,Ea(Math.round((F+dt*$)*U)/U,l,wg(l,k,e))&&dt++):F<l&&dt++);dt<J;++dt)n.push({value:Math.round((F+dt*$)*U)/U});return L&&_&&N!==u?n.length&&Ea(n[n.length-1].value,u,wg(u,k,e))?n[n.length-1].value=u:n.push({value:u}):(!L||N===u)&&n.push({value:N}),n}function wg(e,t,{horizontal:n,minRotation:i}){const r=si(i),o=(n?Math.sin(r):Math.cos(r))||.001,l=.75*t*(""+e).length;return Math.min(t/o,l)}class nl extends Tr{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return me(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:r,max:o}=this;const l=c=>r=n?r:c,u=c=>o=i?o:c;if(t){const c=ja(r),h=ja(o);c<0&&h<0?u(0):c>0&&h>0&&l(0)}if(r===o){let c=o===0?1:Math.abs(o*.05);u(o+c),t||l(r-c)}this.min=r,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=t,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(` + "`" + `scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.` + "`" + `),r=1e3)):(r=this.computeTickLimit(),n=n||11),n&&(r=Math.min(n,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const r={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,l=dE(r,o);return t.bounds==="ticks"&&ev(l,this,"value"),t.reverse?(l.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),l}configure(){const t=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const r=(i-n)/Math.max(t.length-1,1)/2;n-=r,i+=r}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(t){return xl(t,this.chart.options.locale,this.options.ticks.format)}}class Og extends nl{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=$e(t)?t:0,this.max=$e(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,i=si(this.options.ticks.minRotation),r=(t?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/r))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Ut(Og,"id","linear"),Ut(Og,"defaults",{ticks:{callback:wl.formatters.numeric}});const oo=e=>Math.floor(Ni(e)),fr=(e,t)=>Math.pow(10,oo(e)+t);function Sg(e){return e/Math.pow(10,oo(e))===1}function Pg(e,t,n){const i=Math.pow(10,n),r=Math.floor(e/i);return Math.ceil(t/i)-r}function pE(e,t){const n=t-e;let i=oo(n);for(;Pg(e,t,i)>10;)i++;for(;Pg(e,t,i)<10;)i--;return Math.min(i,oo(e))}function gE(e,{min:t,max:n}){t=yn(e.min,t);const i=[],r=oo(t);let o=pE(t,n),l=o<0?Math.pow(10,Math.abs(o)):1;const u=Math.pow(10,o),c=r>o?Math.pow(10,r):0,h=Math.round((t-c)*l)/l,d=Math.floor((t-c)/u/10)*u*10;let g=Math.floor((h-d)/Math.pow(10,o)),_=yn(e.min,Math.round((c+d+g*Math.pow(10,o))*l)/l);for(;_<n;)i.push({value:_,major:Sg(_),significand:g}),g>=10?g=g<15?15:20:g++,g>=20&&(o++,g=2,l=o>=0?1:l),_=Math.round((c+d+g*Math.pow(10,o))*l)/l;const m=yn(e.max,_);return i.push({value:m,major:Sg(m),significand:g}),i}class Mg extends Tr{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const i=nl.prototype.parse.apply(this,[t,n]);if(i===0){this._zero=!0;return}return $e(i)&&i>0?i:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=$e(t)?Math.max(0,t):null,this.max=$e(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!$e(this._userMin)&&(this.min=t===fr(this.min,0)?fr(this.min,-1):fr(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let i=this.min,r=this.max;const o=u=>i=t?i:u,l=u=>r=n?r:u;i===r&&(i<=0?(o(1),l(10)):(o(fr(i,-1)),l(fr(r,1)))),i<=0&&o(fr(r,-1)),r<=0&&l(fr(i,1)),this.min=i,this.max=r}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},i=gE(n,this);return t.bounds==="ticks"&&ev(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(t){return t===void 0?"0":xl(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Ni(t),this._valueRange=Ni(this.max)-Ni(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ni(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}Ut(Mg,"id","logarithmic"),Ut(Mg,"defaults",{ticks:{callback:wl.formatters.logarithmic,major:{enabled:!0}}});function xc(e){const t=e.ticks;if(t.display&&e.display){const n=Xe(t.backdropPadding);return Zt(t.font&&t.font.size,Ce.font.size)+n.height}return 0}function _E(e,t,n){return n=be(n)?n:[n],{w:jC(e,t.string,n),h:n.length*t.lineHeight}}function Cg(e,t,n,i,r){return e===i||e===r?{start:t-n/2,end:t+n/2}:e<i||e>r?{start:t-n,end:t}:{start:t,end:t+n}}function mE(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),i=[],r=[],o=e._pointLabels.length,l=e.options.pointLabels,u=l.centerPointLabels?Ae/o:0;for(let c=0;c<o;c++){const h=l.setContext(e.getPointLabelContext(c));r[c]=h.padding;const d=e.getPointPosition(c,e.drawingArea+r[c],u),g=Ie(h.font),_=_E(e.ctx,g,e._pointLabels[c]);i[c]=_;const m=ni(e.getIndexAngle(c)+u),x=Math.round(tf(m)),b=Cg(x,d.x,_.w,0,180),O=Cg(x,d.y,_.h,90,270);vE(n,t,m,b,O)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=bE(e,i,r)}function vE(e,t,n,i,r){const o=Math.abs(Math.sin(n)),l=Math.abs(Math.cos(n));let u=0,c=0;i.start<t.l?(u=(t.l-i.start)/o,e.l=Math.min(e.l,t.l-u)):i.end>t.r&&(u=(i.end-t.r)/o,e.r=Math.max(e.r,t.r+u)),r.start<t.t?(c=(t.t-r.start)/l,e.t=Math.min(e.t,t.t-c)):r.end>t.b&&(c=(r.end-t.b)/l,e.b=Math.max(e.b,t.b+c))}function bE(e,t,n){const i=[],r=e._pointLabels.length,o=e.options,l=xc(o)/2,u=e.drawingArea,c=o.pointLabels.centerPointLabels?Ae/r:0;for(let h=0;h<r;h++){const d=e.getPointPosition(h,u+l+n[h],c),g=Math.round(tf(ni(d.angle+Se))),_=t[h],m=wE(d.y,_.h,g),x=yE(g),b=xE(d.x,_.w,x);i.push({x:d.x,y:m,textAlign:x,left:b,top:m,right:b+_.w,bottom:m+_.h})}return i}function yE(e){return e===0||e===180?"center":e<180?"left":"right"}function xE(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function wE(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function OE(e,t){const{ctx:n,options:{pointLabels:i}}=e;for(let r=t-1;r>=0;r--){const o=i.setContext(e.getPointLabelContext(r)),l=Ie(o.font),{x:u,y:c,textAlign:h,left:d,top:g,right:_,bottom:m}=e._pointLabelItems[r],{backdropColor:x}=o;if(!me(x)){const b=es(o.borderRadius),O=Xe(o.backdropPadding);n.fillStyle=x;const C=d-O.left,L=g-O.top,A=_-d+O.width,k=m-g+O.height;Object.values(b).some($=>$!==0)?(n.beginPath(),Ga(n,{x:C,y:L,w:A,h:k,radius:b}),n.fill()):n.fillRect(C,L,A,k)}Cr(n,e._pointLabels[r],u,c+l.lineHeight/2,l,{color:o.color,textAlign:h,textBaseline:"middle"})}}function Rv(e,t,n,i){const{ctx:r}=e;if(n)r.arc(e.xCenter,e.yCenter,t,0,Oe);else{let o=e.getPointPosition(0,t);r.moveTo(o.x,o.y);for(let l=1;l<i;l++)o=e.getPointPosition(l,t),r.lineTo(o.x,o.y)}}function SE(e,t,n,i,r){const o=e.ctx,l=t.circular,{color:u,lineWidth:c}=t;!l&&!i||!u||!c||n<0||(o.save(),o.strokeStyle=u,o.lineWidth=c,o.setLineDash(r.dash),o.lineDashOffset=r.dashOffset,o.beginPath(),Rv(e,n,l,i),o.closePath(),o.stroke(),o.restore())}function PE(e,t,n){return Ar(e,{label:n,index:t,type:"pointLabel"})}class xa extends nl{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Xe(xc(this.options)/2),n=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(n,i)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=$e(t)&&!isNaN(t)?t:0,this.max=$e(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/xc(this.options))}generateTickLabels(t){nl.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,i)=>{const r=le(this.options.pointLabels.callback,[n,i],this);return r||r===0?r:""}).filter((n,i)=>this.chart.getDataVisibility(i))}fit(){const t=this.options;t.display&&t.pointLabels.display?mE(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,i,r){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,i,r))}getIndexAngle(t){const n=Oe/(this._pointLabels.length||1),i=this.options.startAngle||0;return ni(t*n+si(i))}getDistanceFromCenterForValue(t){if(me(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(me(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const i=n[t];return PE(this.getContext(),t,i)}}getPointPosition(t,n,i=0){const r=this.getIndexAngle(t)-Se+i;return{x:Math.cos(r)*n+this.xCenter,y:Math.sin(r)*n+this.yCenter,angle:r}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:i,right:r,bottom:o}=this._pointLabelItems[t];return{left:n,top:i,right:r,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),Rv(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:i,grid:r,border:o}=n,l=this._pointLabels.length;let u,c,h;if(n.pointLabels.display&&OE(this,l),r.display&&this.ticks.forEach((d,g)=>{if(g!==0){c=this.getDistanceFromCenterForValue(d.value);const _=this.getContext(g),m=r.setContext(_),x=o.setContext(_);SE(this,m,c,l,x)}}),i.display){for(t.save(),u=l-1;u>=0;u--){const d=i.setContext(this.getPointLabelContext(u)),{color:g,lineWidth:_}=d;!_||!g||(t.lineWidth=_,t.strokeStyle=g,t.setLineDash(d.borderDash),t.lineDashOffset=d.borderDashOffset,c=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),h=this.getPointPosition(u,c),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(h.x,h.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,i=n.ticks;if(!i.display)return;const r=this.getIndexAngle(0);let o,l;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(r),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((u,c)=>{if(c===0&&!n.reverse)return;const h=i.setContext(this.getContext(c)),d=Ie(h.font);if(o=this.getDistanceFromCenterForValue(this.ticks[c].value),h.showLabelBackdrop){t.font=d.string,l=t.measureText(u.label).width,t.fillStyle=h.backdropColor;const g=Xe(h.backdropPadding);t.fillRect(-l/2-g.left,-o-d.size/2-g.top,l+g.width,d.size+g.height)}Cr(t,u.label,0,-o,d,{color:h.color})}),t.restore()}drawTitle(){}}Ut(xa,"id","radialLinear"),Ut(xa,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:wl.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),Ut(xa,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Ut(xa,"descriptors",{angleLines:{_fallback:"grid"}});const Sl={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},hn=Object.keys(Sl);function ME(e,t){return e-t}function Ag(e,t){if(me(t))return null;const n=e._adapter,{parser:i,round:r,isoWeekday:o}=e._parseOpts;let l=t;return typeof i=="function"&&(l=i(l)),$e(l)||(l=typeof i=="string"?n.parse(l,i):n.parse(l)),l===null?null:(r&&(l=r==="week"&&(Ya(o)||o===!0)?n.startOf(l,"isoWeek",o):n.startOf(l,r)),+l)}function Tg(e,t,n,i){const r=hn.length;for(let o=hn.indexOf(e);o<r-1;++o){const l=Sl[hn[o]],u=l.steps?l.steps:Number.MAX_SAFE_INTEGER;if(l.common&&Math.ceil((n-t)/(u*l.size))<=i)return hn[o]}return hn[r-1]}function CE(e,t,n,i,r){for(let o=hn.length-1;o>=hn.indexOf(n);o--){const l=hn[o];if(Sl[l].common&&e._adapter.diff(r,i,l)>=t-1)return l}return hn[n?hn.indexOf(n):0]}function AE(e){for(let t=hn.indexOf(e)+1,n=hn.length;t<n;++t)if(Sl[hn[t]].common)return hn[t]}function Eg(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:i,hi:r}=ef(n,t),o=n[i]>=t?n[i]:n[r];e[o]=!0}}function TE(e,t,n,i){const r=e._adapter,o=+r.startOf(t[0].value,i),l=t[t.length-1].value;let u,c;for(u=o;u<=l;u=+r.add(u,1,i))c=n[u],c>=0&&(t[c].major=!0);return t}function Ig(e,t,n){const i=[],r={},o=t.length;let l,u;for(l=0;l<o;++l)u=t[l],r[u]=l,i.push({value:u,major:!1});return o===0||!n?i:TE(e,i,r,n)}class il extends Tr{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const i=t.time||(t.time={}),r=this._adapter=new $A._date(t.adapters.date);r.init(n),Ys(i.displayFormats,r.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:Ag(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,i=t.time.unit||"day";let{min:r,max:o,minDefined:l,maxDefined:u}=this.getUserBounds();function c(h){!l&&!isNaN(h.min)&&(r=Math.min(r,h.min)),!u&&!isNaN(h.max)&&(o=Math.max(o,h.max))}(!l||!u)&&(c(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&c(this.getMinMax(!1))),r=$e(r)&&!isNaN(r)?r:+n.startOf(Date.now(),i),o=$e(o)&&!isNaN(o)?o:+n.endOf(Date.now(),i)+1,this.min=Math.min(r,o-1),this.max=Math.max(r+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],i=t[t.length-1]),{min:n,max:i}}buildTicks(){const t=this.options,n=t.time,i=t.ticks,r=i.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const o=this.min,l=this.max,u=uC(r,o,l);return this._unit=n.unit||(i.autoSkip?Tg(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):CE(this,u.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:AE(this._unit),this.initOffsets(r),t.reverse&&u.reverse(),Ig(this,u,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,i=0,r,o;this.options.offset&&t.length&&(r=this.getDecimalForValue(t[0]),t.length===1?n=1-r:n=(this.getDecimalForValue(t[1])-r)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?i=o:i=(o-this.getDecimalForValue(t[t.length-2]))/2);const l=t.length<3?.5:.25;n=wn(n,0,l),i=wn(i,0,l),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const t=this._adapter,n=this.min,i=this.max,r=this.options,o=r.time,l=o.unit||Tg(o.minUnit,n,i,this._getLabelCapacity(n)),u=Zt(r.ticks.stepSize,1),c=l==="week"?o.isoWeekday:!1,h=Ya(c)||c===!0,d={};let g=n,_,m;if(h&&(g=+t.startOf(g,"isoWeek",c)),g=+t.startOf(g,h?"day":l),t.diff(i,n,l)>1e5*u)throw new Error(n+" and "+i+" are too far apart with stepSize of "+u+" "+l);const x=r.ticks.source==="data"&&this.getDataTimestamps();for(_=g,m=0;_<i;_=+t.add(_,u,l),m++)Eg(d,_,x);return(_===i||r.bounds==="ticks"||m===1)&&Eg(d,_,x),Object.keys(d).sort((b,O)=>b-O).map(b=>+b)}getLabelForValue(t){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(t,i.tooltipFormat):n.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,n,i,r){const o=this.options,l=o.ticks.callback;if(l)return le(l,[t,n,i],this);const u=o.time.displayFormats,c=this._unit,h=this._majorUnit,d=c&&u[c],g=h&&u[h],_=i[n],m=h&&g&&_&&_.major;return this._adapter.format(t,r||(m?g:d))}generateTickLabels(t){let n,i,r;for(n=0,i=t.length;n<i;++n)r=t[n],r.label=this._tickFormatFunction(r.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+i)*n.factor)}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,i=this.ctx.measureText(t).width,r=si(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(r),l=Math.sin(r),u=this._resolveTickFontOptions(0).size;return{w:i*o+u*l,h:i*l+u*o}}_getLabelCapacity(t){const n=this.options.time,i=n.displayFormats,r=i[n.unit]||i.millisecond,o=this._tickFormatFunction(t,0,Ig(this,[t],this._majorUnit),r),l=this._getLabelSize(o),u=Math.floor(this.isHorizontal()?this.width/l.w:this.height/l.h)-1;return u>0?u:1}getDataTimestamps(){let t=this._cache.data||[],n,i;if(t.length)return t;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(n=0,i=r.length;n<i;++n)t=t.concat(r[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,i;if(t.length)return t;const r=this.getLabels();for(n=0,i=r.length;n<i;++n)t.push(Ag(this,r[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return fC(t.sort(ME))}}Ut(il,"id","time"),Ut(il,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function wa(e,t,n){let i=0,r=e.length-1,o,l,u,c;n?(t>=e[i].pos&&t<=e[r].pos&&({lo:i,hi:r}=gc(e,"pos",t)),{pos:o,time:u}=e[i],{pos:l,time:c}=e[r]):(t>=e[i].time&&t<=e[r].time&&({lo:i,hi:r}=gc(e,"time",t)),{time:o,pos:u}=e[i],{time:l,pos:c}=e[r]);const h=l-o;return h?u+(c-u)*(t-o)/h:u}class Dg extends il{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=wa(n,this.min),this._tableRange=wa(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:i}=this,r=[],o=[];let l,u,c,h,d;for(l=0,u=t.length;l<u;++l)h=t[l],h>=n&&h<=i&&r.push(h);if(r.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(l=0,u=r.length;l<u;++l)d=r[l+1],c=r[l-1],h=r[l],Math.round((d+c)/2)!==h&&o.push({time:h,pos:l/(u-1)});return o}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?t=this.normalize(n.concat(i)):t=n.length?n:i,t=this._cache.all=t,t}getDecimalForValue(t){return(wa(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return wa(this._table,i*this._tableRange+this._minPos,!0)}}Ut(Dg,"id","timeseries"),Ut(Dg,"defaults",il.defaults);var ls;(function(e){e.ChartRendered="chart:rendered",e.ChartUpdated="chart:updated",e.ChartDestroyed="chart:destroyed",e.LabelsUpdated="labels:updated"})(ls||(ls={}));function Oa(e,t,n,i){e(t,n),i!==void 0&&i.emit(ls.ChartRendered)}function EE(e,t){e.update(),t!==void 0&&t.emit(ls.ChartUpdated)}function Sa(e,t){e.destroy(),t!==void 0&&t.emit(ls.ChartDestroyed)}function IE(e,t){const n={labels:typeof e.labels>"u"?[]:[...e.labels],datasets:[]};return kv(n,{...e},t),n}function kv(e,t,n){const i=[];e.datasets=t.datasets.map(r=>{const o=e.datasets.find(l=>l[n]===r[n]);return!o||!r.data||i.includes(o)?{...r}:(i.push(o),Object.assign(o,r),o)})}function DE(e,t,n){e.data.labels=t,n!==void 0&&n.emit(ls.LabelsUpdated)}function LE(e,t){e.options={...t}}function $E(e,t){const n=e.datasets.map(r=>r.label),i=t.datasets.map(r=>r.label);return t.datasets.length===e.datasets.length&&n.every((r,o)=>r===i[o])}const RE="Please remove the <template></template> tags from your chart component. See https://vue-chartjs.org/guide/#vue-single-file-components",kE="Update ERROR: chart instance not found",FE=(e,t,n)=>It({props:{chartData:{type:Object,required:!0},chartOptions:{type:Object,default:()=>{}},datasetIdKey:{type:String,default:"label"},chartId:{type:String,default:e},width:{type:Number,default:400},height:{type:Number,default:400},cssClasses:{type:String,default:""},styles:{type:Object,default:()=>{}},plugins:{type:Array,default:()=>[]}},setup(i,r){tl.register(n);const o=co(null),l=R(null);function u(g,_){if(o.value!==null&&Sa(kt(o.value),r),l.value===null)throw new Error(RE);{const m=IE(g,i.datasetIdKey),x=l.value.getContext("2d");x!==null&&(o.value=new tl(x,{type:t,data:Ws(g)?new Proxy(m,{}):m,options:_,plugins:i.plugins}))}}function c(g,_){const m=Ws(g)?kt(g):{...g},x=Ws(_)?kt(_):{..._};if(Object.keys(x).length>0){const b=kt(o.value);$E(m,x)&&b!==null?(kv(b==null?void 0:b.data,m,i.datasetIdKey),m.labels!==void 0&&DE(b,m.labels,r),d()):(b!==null&&Sa(b,r),Oa(u,i.chartData,i.chartOptions,r))}else o.value!==null&&Sa(kt(o.value),r),Oa(u,i.chartData,i.chartOptions,r)}function h(g){const _=kt(o.value);_!==null?(LE(_,g),d()):Oa(u,i.chartData,i.chartOptions,r)}function d(){const g=kt(o.value);g!==null?EE(g,r):console.error(kE)}return Mt(()=>i.chartData,(g,_)=>c(g,_),{deep:!0}),Mt(()=>i.chartOptions,g=>h(g),{deep:!0}),fo(()=>{"datasets"in i.chartData&&i.chartData.datasets.length>0&&Oa(u,i.chartData,i.chartOptions,r)}),Kc(()=>{o.value!==null&&Sa(kt(o.value),r)}),r.expose({chart:o,updateChart:d}),()=>Ye("div",{style:i.styles,class:i.cssClasses},[Ye("canvas",{id:i.chartId,width:i.width,height:i.height,ref:l})])}}),BE=FE("doughnut-chart","doughnut",Hs);var Lg;const ai=typeof window<"u",ao=e=>typeof e=="function",Fv=e=>typeof e=="string",rl=()=>+Date.now(),$g=(e,t,n)=>Math.min(n,Math.max(t,e)),Kn=()=>{},Rg=ai&&((Lg=window==null?void 0:window.navigator)==null?void 0:Lg.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Xt(e){return typeof e=="function"?e():Yt(e)}function go(e,t){function n(...i){e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})}return n}const gf=e=>e();function HE(e,t={}){let n,i;return o=>{const l=Xt(e),u=Xt(t.maxWait);if(n&&clearTimeout(n),l<=0||u!==void 0&&u<=0)return i&&(clearTimeout(i),i=null),o();u&&!i&&(i=setTimeout(()=>{n&&clearTimeout(n),i=null,o()},u)),n=setTimeout(()=>{i&&clearTimeout(i),i=null,o()},l)}}function Bv(e,t=!0,n=!0){let i=0,r,o=!0;const l=()=>{r&&(clearTimeout(r),r=void 0)};return c=>{const h=Xt(e),d=Date.now()-i;if(l(),h<=0)return i=Date.now(),c();d>h&&(n||!o)?(i=Date.now(),c()):t&&(r=setTimeout(()=>{i=Date.now(),o=!0,l(),c()},h-d)),!n&&!r&&(r=setTimeout(()=>o=!0,h)),o=!1}}function zE(e=gf){const t=R(!0);function n(){t.value=!1}function i(){t.value=!0}return{isActive:t,pause:n,resume:i,eventFilter:(...o)=>{t.value&&e(...o)}}}const li={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function NE(e,t=!1,n="Timeout"){return new Promise((i,r)=>{setTimeout(t?()=>r(n):i,e)})}function WE(e){return e}function UE(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const i=t;t=void 0,i&&await i},n}function VE(e,t,n=!1){return t.reduce((i,r)=>(r in e&&(!n||e[r]!==void 0)&&(i[r]=e[r]),i),{})}function jE(e,t){let n,i,r;const o=R(!0),l=()=>{o.value=!0,r()};Mt(e,l,{flush:"sync"});const u=ao(t)?t:t.get,c=ao(t)?void 0:t.set,h=vm((d,g)=>(i=d,r=g,{get(){return o.value&&(n=u(),o.value=!1),i(),n},set(_){c==null||c(_)}}));return Object.isExtensible(h)&&(h.trigger=l),h}function en(e){return fP()?(hP(e),!0):!1}function Hv(e,t=200,n={}){return go(HE(t,n),e)}function YE(e,t=200,n=!1,i=!0){return go(Bv(t,n,i),e)}function _f(e){return typeof e=="function"?At(e):R(e)}function kg(e,t,n={}){var i,r;const{flush:o="sync",deep:l=!1,immediate:u=!0,direction:c="both",transform:h={}}=n;let d,g;const _=(i=h.ltr)!=null?i:x=>x,m=(r=h.rtl)!=null?r:x=>x;return(c==="both"||c==="ltr")&&(d=Mt(e,x=>t.value=_(x),{flush:o,deep:l,immediate:u})),(c==="both"||c==="rtl")&&(g=Mt(t,x=>e.value=m(x),{flush:o,deep:l,immediate:u})),()=>{d==null||d(),g==null||g()}}var KE=Object.defineProperty,XE=Object.defineProperties,qE=Object.getOwnPropertyDescriptors,Fg=Object.getOwnPropertySymbols,GE=Object.prototype.hasOwnProperty,JE=Object.prototype.propertyIsEnumerable,Bg=(e,t,n)=>t in e?KE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ZE=(e,t)=>{for(var n in t||(t={}))GE.call(t,n)&&Bg(e,n,t[n]);if(Fg)for(var n of Fg(t))JE.call(t,n)&&Bg(e,n,t[n]);return e},QE=(e,t)=>XE(e,qE(t));function zv(e){if(!we(e))return bm(e);const t=Array.isArray(e.value)?new Array(e.value.length):{};for(const n in e.value)t[n]=vm(()=>({get(){return e.value[n]},set(i){if(Array.isArray(e.value)){const r=[...e.value];r[n]=i,e.value=r}else{const r=QE(ZE({},e.value),{[n]:i});Object.setPrototypeOf(r,e.value),e.value=r}}}));return t}function ps(e,t=!0){Jc()?fo(e):t?e():ds(e)}function Nv(e,t=1e3,n={}){const{immediate:i=!0,immediateCallback:r=!1}=n;let o=null;const l=R(!1);function u(){o&&(clearInterval(o),o=null)}function c(){l.value=!1,u()}function h(){Yt(t)<=0||(l.value=!0,r&&e(),u(),o=setInterval(e,Xt(t)))}if(i&&ai&&h(),we(t)||ao(t)){const d=Mt(t,()=>{l.value&&ai&&h()});en(d)}return en(c),{isActive:l,pause:c,resume:h}}function tI(e=!1,t={}){const{truthyValue:n=!0,falsyValue:i=!1}=t,r=we(e),o=R(e);function l(u){if(arguments.length)return o.value=u,o.value;{const c=Xt(n);return o.value=o.value===c?Xt(i):c,o.value}}return r?l:[o,l]}var Hg=Object.getOwnPropertySymbols,eI=Object.prototype.hasOwnProperty,nI=Object.prototype.propertyIsEnumerable,iI=(e,t)=>{var n={};for(var i in e)eI.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&Hg)for(var i of Hg(e))t.indexOf(i)<0&&nI.call(e,i)&&(n[i]=e[i]);return n};function rI(e,t,n={}){const i=n,{eventFilter:r=gf}=i,o=iI(i,["eventFilter"]);return Mt(e,go(r,t),o)}var sI=Object.defineProperty,oI=Object.defineProperties,aI=Object.getOwnPropertyDescriptors,sl=Object.getOwnPropertySymbols,Wv=Object.prototype.hasOwnProperty,Uv=Object.prototype.propertyIsEnumerable,zg=(e,t,n)=>t in e?sI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lI=(e,t)=>{for(var n in t||(t={}))Wv.call(t,n)&&zg(e,n,t[n]);if(sl)for(var n of sl(t))Uv.call(t,n)&&zg(e,n,t[n]);return e},uI=(e,t)=>oI(e,aI(t)),cI=(e,t)=>{var n={};for(var i in e)Wv.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&sl)for(var i of sl(e))t.indexOf(i)<0&&Uv.call(e,i)&&(n[i]=e[i]);return n};function Vv(e,t,n={}){const i=n,{eventFilter:r}=i,o=cI(i,["eventFilter"]),{eventFilter:l,pause:u,resume:c,isActive:h}=zE(r);return{stop:rI(e,t,uI(lI({},o),{eventFilter:l})),pause:u,resume:c,isActive:h}}function dn(e){var t;const n=Xt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ce=ai?window:void 0,jv=ai?window.document:void 0,Pl=ai?window.navigator:void 0;function vt(...e){let t,n,i,r;if(Fv(e[0])||Array.isArray(e[0])?([n,i,r]=e,t=ce):[t,n,i,r]=e,!t)return Kn;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const o=[],l=()=>{o.forEach(d=>d()),o.length=0},u=(d,g,_)=>(d.addEventListener(g,_,r),()=>d.removeEventListener(g,_,r)),c=Mt(()=>dn(t),d=>{l(),d&&o.push(...n.flatMap(g=>i.map(_=>u(d,g,_))))},{immediate:!0,flush:"post"}),h=()=>{c(),l()};return en(h),h}function fI(e,t,n={}){const{window:i=ce,ignore:r=[],capture:o=!0,detectIframe:l=!1}=n;if(!i)return;let u=!0,c;const h=m=>r.some(x=>{if(typeof x=="string")return Array.from(i.document.querySelectorAll(x)).some(b=>b===m.target||m.composedPath().includes(b));{const b=dn(x);return b&&(m.target===b||m.composedPath().includes(b))}}),d=m=>{i.clearTimeout(c);const x=dn(e);if(!(!x||x===m.target||m.composedPath().includes(x))){if(m.detail===0&&(u=!h(m)),!u){u=!0;return}t(m)}},g=[vt(i,"click",d,{passive:!0,capture:o}),vt(i,"pointerdown",m=>{const x=dn(e);x&&(u=!m.composedPath().includes(x)&&!h(m))},{passive:!0}),vt(i,"pointerup",m=>{if(m.button===0){const x=m.composedPath();m.composedPath=()=>x,c=i.setTimeout(()=>d(m),50)}},{passive:!0}),l&&vt(i,"blur",m=>{var x;const b=dn(e);((x=i.document.activeElement)==null?void 0:x.tagName)==="IFRAME"&&!(b!=null&&b.contains(i.document.activeElement))&&t(m)})].filter(Boolean);return()=>g.forEach(m=>m())}function hI(e={}){const{window:t=ce}=e,n=jE(()=>null,()=>t==null?void 0:t.document.activeElement);return t&&(vt(t,"blur",i=>{i.relatedTarget!==null&&n.trigger()},!0),vt(t,"focus",n.trigger,!0)),n}function ci(e,t=!1){const n=R(),i=()=>n.value=Boolean(e());return i(),ps(i,t),n}function dI({navigator:e=Pl}={}){const t=["chargingchange","chargingtimechange","dischargingtimechange","levelchange"],n=ci(()=>e&&"getBattery"in e),i=R(!1),r=R(0),o=R(0),l=R(1);let u;function c(){i.value=this.charging,r.value=this.chargingTime||0,o.value=this.dischargingTime||0,l.value=this.level}return n.value&&e.getBattery().then(h=>{u=h,c.call(u);for(const d of t)vt(u,d,c,{passive:!0})}),{isSupported:n,charging:i,chargingTime:r,dischargingTime:o,level:l}}function Or(e,t={}){const{window:n=ce}=t,i=ci(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const o=R(!1),l=()=>{!r||("removeEventListener"in r?r.removeEventListener("change",u):r.removeListener(u))},u=()=>{!i.value||(l(),r=n.matchMedia(_f(e).value),o.value=r.matches,"addEventListener"in r?r.addEventListener("change",u):r.addListener(u))};return Tm(u),en(()=>l()),o}function pI({window:e=ce}={}){const t=i=>{const{state:r,length:o}=(e==null?void 0:e.history)||{},{hash:l,host:u,hostname:c,href:h,origin:d,pathname:g,port:_,protocol:m,search:x}=(e==null?void 0:e.location)||{};return{trigger:i,state:r,length:o,hash:l,host:u,hostname:c,href:h,origin:d,pathname:g,port:_,protocol:m,search:x}},n=R(t("load"));return e&&(vt(e,"popstate",()=>n.value=t("popstate"),{passive:!0}),vt(e,"hashchange",()=>n.value=t("hashchange"),{passive:!0})),n}const wc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Oc="__vueuse_ssr_handlers__";wc[Oc]=wc[Oc]||{};const gI=wc[Oc];function Yv(e,t){return gI[e]||t}function _I(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var mI=Object.defineProperty,Ng=Object.getOwnPropertySymbols,vI=Object.prototype.hasOwnProperty,bI=Object.prototype.propertyIsEnumerable,Wg=(e,t,n)=>t in e?mI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ug=(e,t)=>{for(var n in t||(t={}))vI.call(t,n)&&Wg(e,n,t[n]);if(Ng)for(var n of Ng(t))bI.call(t,n)&&Wg(e,n,t[n]);return e};const yI={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function Kv(e,t,n,i={}){var r;const{flush:o="pre",deep:l=!0,listenToStorageChanges:u=!0,writeDefaults:c=!0,mergeDefaults:h=!1,shallow:d,window:g=ce,eventFilter:_,onError:m=F=>{console.error(F)}}=i,x=(d?co:R)(t);if(!n)try{n=Yv("getDefaultStorage",()=>{var F;return(F=ce)==null?void 0:F.localStorage})()}catch(F){m(F)}if(!n)return x;const b=Xt(t),O=_I(b),C=(r=i.serializer)!=null?r:yI[O],{pause:L,resume:A}=Vv(x,()=>k(x.value),{flush:o,deep:l,eventFilter:_});return g&&u&&vt(g,"storage",U),U(),x;function k(F){try{if(F==null)n.removeItem(e);else{const N=C.write(F),J=n.getItem(e);J!==N&&(n.setItem(e,N),g&&(g==null||g.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:J,newValue:N,storageArea:n}))))}}catch(N){m(N)}}function $(F){const N=F?F.newValue:n.getItem(e);if(N==null)return c&&b!==null&&n.setItem(e,C.write(b)),b;if(!F&&h){const J=C.read(N);return ao(h)?h(J,b):O==="object"&&!Array.isArray(J)?Ug(Ug({},b),J):J}else return typeof N!="string"?N:C.read(N)}function U(F){if(!(F&&F.storageArea!==n)){if(F&&F.key==null){x.value=b;return}if(!(F&&F.key!==e)){L();try{x.value=$(F)}catch(N){m(N)}finally{F?ds(A):A()}}}}}function mf(e){return Or("(prefers-color-scheme: dark)",e)}var xI=Object.defineProperty,Vg=Object.getOwnPropertySymbols,wI=Object.prototype.hasOwnProperty,OI=Object.prototype.propertyIsEnumerable,jg=(e,t,n)=>t in e?xI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,SI=(e,t)=>{for(var n in t||(t={}))wI.call(t,n)&&jg(e,n,t[n]);if(Vg)for(var n of Vg(t))OI.call(t,n)&&jg(e,n,t[n]);return e};function PI(e={}){const{selector:t="html",attribute:n="class",initialValue:i="auto",window:r=ce,storage:o,storageKey:l="vueuse-color-scheme",listenToStorageChanges:u=!0,storageRef:c,emitAuto:h}=e,d=SI({auto:"",light:"light",dark:"dark"},e.modes||{}),g=mf({window:r}),_=At(()=>g.value?"dark":"light"),m=c||(l==null?R(i):Kv(l,i,o,{window:r,listenToStorageChanges:u})),x=At({get(){return m.value==="auto"&&!h?_.value:m.value},set(L){m.value=L}}),b=Yv("updateHTMLAttrs",(L,A,k)=>{const $=r==null?void 0:r.document.querySelector(L);if(!!$)if(A==="class"){const U=k.split(/\s/g);Object.values(d).flatMap(F=>(F||"").split(/\s/g)).filter(Boolean).forEach(F=>{U.includes(F)?$.classList.add(F):$.classList.remove(F)})}else $.setAttribute(A,k)});function O(L){var A;const k=L==="auto"?_.value:L;b(t,n,(A=d[k])!=null?A:k)}function C(L){e.onChanged?e.onChanged(L,O):O(L)}return Mt(x,C,{flush:"post",immediate:!0}),h&&Mt(_,()=>C(x.value),{flush:"post"}),ps(()=>C(x.value)),x}var MI=Object.defineProperty,CI=Object.defineProperties,AI=Object.getOwnPropertyDescriptors,Yg=Object.getOwnPropertySymbols,TI=Object.prototype.hasOwnProperty,EI=Object.prototype.propertyIsEnumerable,Kg=(e,t,n)=>t in e?MI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,II=(e,t)=>{for(var n in t||(t={}))TI.call(t,n)&&Kg(e,n,t[n]);if(Yg)for(var n of Yg(t))EI.call(t,n)&&Kg(e,n,t[n]);return e},DI=(e,t)=>CI(e,AI(t));function LI(e={}){const{valueDark:t="dark",valueLight:n="",window:i=ce}=e,r=PI(DI(II({},e),{onChanged:(u,c)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,u==="dark"):c(u)},modes:{dark:t,light:n}})),o=mf({window:i});return At({get(){return r.value==="dark"},set(u){u===o.value?r.value="auto":r.value=u?"dark":"light"}})}function $I(e={}){const{window:t=ce,eventFilter:n=gf}=e,i=R({x:null,y:null,z:null}),r=R({alpha:null,beta:null,gamma:null}),o=R(0),l=R({x:null,y:null,z:null});if(t){const u=go(n,c=>{i.value=c.acceleration,l.value=c.accelerationIncludingGravity,r.value=c.rotationRate,o.value=c.interval});vt(t,"devicemotion",u)}return{acceleration:i,accelerationIncludingGravity:l,rotationRate:r,interval:o}}function RI(e={}){const{window:t=ce}=e,n=ci(()=>t&&"DeviceOrientationEvent"in t),i=R(!1),r=R(null),o=R(null),l=R(null);return t&&n.value&&vt(t,"deviceorientation",u=>{i.value=u.absolute,r.value=u.alpha,o.value=u.beta,l.value=u.gamma}),{isSupported:n,isAbsolute:i,alpha:r,beta:o,gamma:l}}function kI({window:e=ce}={}){if(!e)return{pixelRatio:R(1)};const t=R(1),n=[],i=()=>{n.map(o=>o()),n.length=0},r=()=>{t.value=e.devicePixelRatio,i();const o=e.matchMedia(` + "`" + `(resolution: ${t.value}dppx)` + "`" + `);o.addEventListener("change",r,{once:!0}),n.push(()=>{o.removeEventListener("change",r)})};return r(),en(i),{pixelRatio:t}}function FI(e,t={}){const{controls:n=!1,navigator:i=Pl}=t,r=ci(()=>i&&"permissions"in i);let o;const l=typeof e=="string"?{name:e}:e,u=R(),c=()=>{o&&(u.value=o.state)},h=UE(async()=>{if(!!r.value){if(!o)try{o=await i.permissions.query(l),vt(o,"change",c),c()}catch{u.value="prompt"}return o}});return h(),n?{state:u,isSupported:r,query:h}:u}function BI(e={}){const{navigator:t=Pl,requestPermissions:n=!1,constraints:i={audio:!0,video:!0},onUpdated:r}=e,o=R([]),l=At(()=>o.value.filter(m=>m.kind==="videoinput")),u=At(()=>o.value.filter(m=>m.kind==="audioinput")),c=At(()=>o.value.filter(m=>m.kind==="audiooutput")),h=ci(()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices),d=R(!1);async function g(){!h.value||(o.value=await t.mediaDevices.enumerateDevices(),r==null||r(o.value))}async function _(){if(!h.value)return!1;if(d.value)return!0;const{state:m,query:x}=FI("camera",{controls:!0});return await x(),m.value!=="granted"&&((await t.mediaDevices.getUserMedia(i)).getTracks().forEach(O=>O.stop()),g()),d.value=!0,d.value}return h.value&&(n&&_(),vt(t.mediaDevices,"devicechange",g),g()),{devices:o,ensurePermissions:_,permissionGranted:d,videoInputs:l,audioInputs:u,audioOutputs:c,isSupported:h}}function HI({document:e=jv}={}){if(!e)return R("visible");const t=R(e.visibilityState);return vt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var zI=Object.defineProperty,NI=Object.defineProperties,WI=Object.getOwnPropertyDescriptors,Xg=Object.getOwnPropertySymbols,UI=Object.prototype.hasOwnProperty,VI=Object.prototype.propertyIsEnumerable,qg=(e,t,n)=>t in e?zI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jI=(e,t)=>{for(var n in t||(t={}))UI.call(t,n)&&qg(e,n,t[n]);if(Xg)for(var n of Xg(t))VI.call(t,n)&&qg(e,n,t[n]);return e},YI=(e,t)=>NI(e,WI(t));function KI(e,t={}){var n,i,r;const o=(n=t.draggingElement)!=null?n:ce,l=(i=t.handle)!=null?i:e,u=R((r=Xt(t.initialValue))!=null?r:{x:0,y:0}),c=R(),h=x=>t.pointerTypes?t.pointerTypes.includes(x.pointerType):!0,d=x=>{Xt(t.preventDefault)&&x.preventDefault(),Xt(t.stopPropagation)&&x.stopPropagation()},g=x=>{var b;if(!h(x)||Xt(t.exact)&&x.target!==Xt(e))return;const O=Xt(e).getBoundingClientRect(),C={x:x.clientX-O.left,y:x.clientY-O.top};((b=t.onStart)==null?void 0:b.call(t,C,x))!==!1&&(c.value=C,d(x))},_=x=>{var b;!h(x)||!c.value||(u.value={x:x.clientX-c.value.x,y:x.clientY-c.value.y},(b=t.onMove)==null||b.call(t,u.value,x),d(x))},m=x=>{var b;!h(x)||!c.value||(c.value=void 0,(b=t.onEnd)==null||b.call(t,u.value,x),d(x))};return ai&&(vt(l,"pointerdown",g,!0),vt(o,"pointermove",_,!0),vt(o,"pointerup",m,!0)),YI(jI({},zv(u)),{position:u,isDragging:At(()=>!!c.value),style:At(()=>` + "`" + `left:${u.value.x}px;top:${u.value.y}px;` + "`" + `)})}var Gg=Object.getOwnPropertySymbols,XI=Object.prototype.hasOwnProperty,qI=Object.prototype.propertyIsEnumerable,GI=(e,t)=>{var n={};for(var i in e)XI.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&Gg)for(var i of Gg(e))t.indexOf(i)<0&&qI.call(e,i)&&(n[i]=e[i]);return n};function Xv(e,t,n={}){const i=n,{window:r=ce}=i,o=GI(i,["window"]);let l;const u=ci(()=>r&&"ResizeObserver"in r),c=()=>{l&&(l.disconnect(),l=void 0)},h=Mt(()=>dn(e),g=>{c(),u.value&&r&&g&&(l=new ResizeObserver(t),l.observe(g,o))},{immediate:!0,flush:"post"}),d=()=>{c(),h()};return en(d),{isSupported:u,stop:d}}function JI(e,t={}){const{reset:n=!0,windowResize:i=!0,windowScroll:r=!0,immediate:o=!0}=t,l=R(0),u=R(0),c=R(0),h=R(0),d=R(0),g=R(0),_=R(0),m=R(0);function x(){const b=dn(e);if(!b){n&&(l.value=0,u.value=0,c.value=0,h.value=0,d.value=0,g.value=0,_.value=0,m.value=0);return}const O=b.getBoundingClientRect();l.value=O.height,u.value=O.bottom,c.value=O.left,h.value=O.right,d.value=O.top,g.value=O.width,_.value=O.x,m.value=O.y}return Xv(e,x),Mt(()=>dn(e),b=>!b&&x()),r&&vt("scroll",x,{passive:!0}),i&&vt("resize",x,{passive:!0}),ps(()=>{o&&x()}),{height:l,bottom:u,left:c,right:h,top:d,width:g,x:_,y:m,update:x}}function qv(e,t={}){const{immediate:n=!0,window:i=ce}=t,r=R(!1);let o=0,l=null;function u(d){if(!r.value||!i)return;const g=d-o;e({delta:g,timestamp:d}),o=d,l=i.requestAnimationFrame(u)}function c(){!r.value&&i&&(r.value=!0,l=i.requestAnimationFrame(u))}function h(){r.value=!1,l!=null&&i&&(i.cancelAnimationFrame(l),l=null)}return n&&c(),en(h),{isActive:r,pause:h,resume:c}}function Gv(e,t={width:0,height:0},n={}){const{box:i="content-box"}=n,r=R(t.width),o=R(t.height);return Xv(e,([l])=>{const u=i==="border-box"?l.borderBoxSize:i==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;u?(r.value=u.reduce((c,{inlineSize:h})=>c+h,0),o.value=u.reduce((c,{blockSize:h})=>c+h,0)):(r.value=l.contentRect.width,o.value=l.contentRect.height)},n),Mt(()=>dn(e),l=>{r.value=l?t.width:0,o.value=l?t.height:0}),{width:r,height:o}}function ZI(e,{window:t=ce,scrollTarget:n}={}){const i=R(!1),r=()=>{if(!t)return;const o=t.document,l=dn(e);if(!l)i.value=!1;else{const u=l.getBoundingClientRect();i.value=u.top<=(t.innerHeight||o.documentElement.clientHeight)&&u.left<=(t.innerWidth||o.documentElement.clientWidth)&&u.bottom>=0&&u.right>=0}};return Mt(()=>dn(e),()=>r(),{immediate:!0,flush:"post"}),t&&vt(n||t,"scroll",r,{capture:!1,passive:!0}),i}function QI(e={}){const{initialValue:t=""}=e,n=ci(()=>typeof window<"u"&&"EyeDropper"in window),i=R(t);async function r(o){if(!n.value)return;const u=await new window.EyeDropper().open(o);return i.value=u.sRGBHex,u}return{isSupported:n,sRGBHex:i,open:r}}const Jg=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];function tD(e,t={}){const{document:n=jv,autoExit:i=!1}=t,r=e||(n==null?void 0:n.querySelector("html")),o=R(!1);let l=Jg[0];const u=ci(()=>{if(n){for(const b of Jg)if(b[1]in n)return l=b,!0}else return!1;return!1}),[c,h,d,,g]=l;async function _(){!u.value||(n!=null&&n[d]&&await n[h](),o.value=!1)}async function m(){if(!u.value)return;await _();const b=dn(r);b&&(await b[c](),o.value=!0)}async function x(){o.value?await _():await m()}return n&&vt(n,g,()=>{o.value=!!(n!=null&&n[d])},!1),i&&en(_),{isSupported:u,isFullscreen:o,enter:m,exit:_,toggle:x}}function eD(e={}){const{enableHighAccuracy:t=!0,maximumAge:n=3e4,timeout:i=27e3,navigator:r=Pl,immediate:o=!0}=e,l=ci(()=>r&&"geolocation"in r),u=R(null),c=R(null),h=R({accuracy:0,latitude:1/0,longitude:1/0,altitude:null,altitudeAccuracy:null,heading:null,speed:null});function d(x){u.value=x.timestamp,h.value=x.coords,c.value=null}let g;function _(){l.value&&(g=r.geolocation.watchPosition(d,x=>c.value=x,{enableHighAccuracy:t,maximumAge:n,timeout:i}))}o&&_();function m(){g&&r&&r.geolocation.clearWatch(g)}return en(()=>{m()}),{isSupported:l,coords:h,locatedAt:u,error:c,resume:_,pause:m}}const nD=["mousemove","mousedown","resize","keydown","touchstart","wheel"],iD=6e4;function rD(e=iD,t={}){const{initialState:n=!1,listenForVisibilityChange:i=!0,events:r=nD,window:o=ce,eventFilter:l=Bv(50)}=t,u=R(n),c=R(rl());let h;const d=go(l,()=>{u.value=!1,c.value=rl(),clearTimeout(h),h=setTimeout(()=>u.value=!0,e)});if(o){const g=o.document;for(const _ of r)vt(o,_,d,{passive:!0});i&&vt(g,"visibilitychange",()=>{g.hidden||d()})}return h=setTimeout(()=>u.value=!0,e),{idle:u,lastActive:c}}function Jv(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:i=!1,initialValue:r={x:0,y:0},window:o=ce,eventFilter:l}=e,u=R(r.x),c=R(r.y),h=R(null),d=b=>{t==="page"?(u.value=b.pageX,c.value=b.pageY):t==="client"&&(u.value=b.clientX,c.value=b.clientY),h.value="mouse"},g=()=>{u.value=r.x,c.value=r.y},_=b=>{if(b.touches.length>0){const O=b.touches[0];t==="page"?(u.value=O.pageX,c.value=O.pageY):t==="client"&&(u.value=O.clientX,c.value=O.clientY),h.value="touch"}},m=b=>l===void 0?d(b):l(()=>d(b),{}),x=b=>l===void 0?_(b):l(()=>_(b),{});return o&&(vt(o,"mousemove",m,{passive:!0}),vt(o,"dragover",m,{passive:!0}),n&&(vt(o,"touchstart",x,{passive:!0}),vt(o,"touchmove",x,{passive:!0}),i&&vt(o,"touchend",g,{passive:!0}))),{x:u,y:c,sourceType:h}}function sD(e,t={}){const{handleOutside:n=!0,window:i=ce}=t,{x:r,y:o,sourceType:l}=Jv(t),u=R(e!=null?e:i==null?void 0:i.document.body),c=R(0),h=R(0),d=R(0),g=R(0),_=R(0),m=R(0),x=R(!0);let b=()=>{};return i&&(b=Mt([u,r,o],()=>{const O=dn(u);if(!O)return;const{left:C,top:L,width:A,height:k}=O.getBoundingClientRect();d.value=C+i.pageXOffset,g.value=L+i.pageYOffset,_.value=k,m.value=A;const $=r.value-d.value,U=o.value-g.value;x.value=A===0||k===0||$<0||U<0||$>A||U>k,(n||!x.value)&&(c.value=$,h.value=U)},{immediate:!0})),{x:r,y:o,sourceType:l,elementX:c,elementY:h,elementPositionX:d,elementPositionY:g,elementHeight:_,elementWidth:m,isOutside:x,stop:b}}function oD(e={}){const{touch:t=!0,drag:n=!0,initialValue:i=!1,window:r=ce}=e,o=R(i),l=R(null);if(!r)return{pressed:o,sourceType:l};const u=d=>()=>{o.value=!0,l.value=d},c=()=>{o.value=!1,l.value=null},h=At(()=>dn(e.target)||r);return vt(h,"mousedown",u("mouse"),{passive:!0}),vt(r,"mouseleave",c,{passive:!0}),vt(r,"mouseup",c,{passive:!0}),n&&(vt(h,"dragstart",u("mouse"),{passive:!0}),vt(r,"drop",c,{passive:!0}),vt(r,"dragend",c,{passive:!0})),t&&(vt(h,"touchstart",u("touch"),{passive:!0}),vt(r,"touchend",c,{passive:!0}),vt(r,"touchcancel",c,{passive:!0})),{pressed:o,sourceType:l}}function Zv(e={}){const{window:t=ce}=e,n=t==null?void 0:t.navigator,i=ci(()=>n&&"connection"in n),r=R(!0),o=R(!1),l=R(void 0),u=R(void 0),c=R(void 0),h=R(void 0),d=R(void 0),g=R(void 0),_=R("unknown"),m=i.value&&n.connection;function x(){!n||(r.value=n.onLine,l.value=r.value?void 0:Date.now(),u.value=r.value?Date.now():void 0,m&&(c.value=m.downlink,h.value=m.downlinkMax,g.value=m.effectiveType,d.value=m.rtt,o.value=m.saveData,_.value=m.type))}return t&&(vt(t,"offline",()=>{r.value=!1,l.value=Date.now()}),vt(t,"online",()=>{r.value=!0,u.value=Date.now()})),m&&vt(m,"change",x,!1),x(),{isSupported:i,isOnline:r,saveData:o,offlineAt:l,onlineAt:u,downlink:c,downlinkMax:h,effectiveType:g,rtt:d,type:_}}var aD=Object.defineProperty,Zg=Object.getOwnPropertySymbols,lD=Object.prototype.hasOwnProperty,uD=Object.prototype.propertyIsEnumerable,Qg=(e,t,n)=>t in e?aD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cD=(e,t)=>{for(var n in t||(t={}))lD.call(t,n)&&Qg(e,n,t[n]);if(Zg)for(var n of Zg(t))uD.call(t,n)&&Qg(e,n,t[n]);return e};function Qv(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,i=R(new Date),r=()=>i.value=new Date,o=n==="requestAnimationFrame"?qv(r,{immediate:!0}):Nv(r,n,{immediate:!0});return t?cD({now:i},o):i}function fD(e){const t=R(),n=()=>{t.value&&URL.revokeObjectURL(t.value),t.value=void 0};return Mt(()=>Yt(e),i=>{n(),i&&(t.value=URL.createObjectURL(i))},{immediate:!0}),en(n),Hc(t)}function t_(e,t,n){const i=R(e);return At({get(){return i.value=$g(i.value,Xt(t),Xt(n))},set(r){i.value=$g(r,Xt(t),Xt(n))}})}function hD(e){const{total:t=1/0,pageSize:n=10,page:i=1,onPageChange:r=Kn,onPageSizeChange:o=Kn,onPageCountChange:l=Kn}=e,u=t_(n,1,1/0),c=At(()=>Math.max(1,Math.ceil(Yt(t)/Yt(u)))),h=t_(i,1,c),d=At(()=>h.value===1),g=At(()=>h.value===c.value);we(i)&&kg(i,h),we(n)&&kg(n,u);function _(){h.value--}function m(){h.value++}const x={currentPage:h,currentPageSize:u,pageCount:c,isFirstPage:d,isLastPage:g,prev:_,next:m};return Mt(h,()=>{r(Ct(x))}),Mt(u,()=>{o(Ct(x))}),Mt(c,()=>{l(Ct(x))}),x}function dD(e={}){const{isOnline:t}=Zv(e);return t}function pD(e={}){const{window:t=ce}=e,n=R(!1),i=r=>{if(!t)return;r=r||t.event;const o=r.relatedTarget||r.toElement;n.value=!o};return t&&(vt(t,"mouseout",i,{passive:!0}),vt(t.document,"mouseleave",i,{passive:!0}),vt(t.document,"mouseenter",i,{passive:!0})),n}var gD=Object.defineProperty,_D=Object.defineProperties,mD=Object.getOwnPropertyDescriptors,e_=Object.getOwnPropertySymbols,vD=Object.prototype.hasOwnProperty,bD=Object.prototype.propertyIsEnumerable,n_=(e,t,n)=>t in e?gD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yD=(e,t)=>{for(var n in t||(t={}))vD.call(t,n)&&n_(e,n,t[n]);if(e_)for(var n of e_(t))bD.call(t,n)&&n_(e,n,t[n]);return e},xD=(e,t)=>_D(e,mD(t));const t0={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},wD=Object.keys(t0);function OD(e={}){const{target:t=ce}=e,n=R(!1),i=R(e.initialValue||{});Object.assign(i.value,t0,i.value);const r=o=>{n.value=!0,!(e.pointerTypes&&!e.pointerTypes.includes(o.pointerType))&&(i.value=VE(o,wD,!1))};return t&&(vt(t,"pointerdown",r,{passive:!0}),vt(t,"pointermove",r,{passive:!0}),vt(t,"pointerleave",()=>n.value=!1,{passive:!0})),xD(yD({},zv(i)),{isInside:n})}var i_;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(i_||(i_={}));function SD(e){const t=Or("(prefers-color-scheme: light)",e),n=Or("(prefers-color-scheme: dark)",e);return At(()=>n.value?"dark":t.value?"light":"no-preference")}function PD(e){const t=Or("(prefers-contrast: more)",e),n=Or("(prefers-contrast: less)",e),i=Or("(prefers-contrast: custom)",e);return At(()=>t.value?"more":n.value?"less":i.value?"custom":"no-preference")}function MD(e={}){const{window:t=ce}=e;if(!t)return R(["en"]);const n=t.navigator,i=R(n.languages);return vt(t,"languagechange",()=>{i.value=n.languages}),i}function CD(e){const t=Or("(prefers-reduced-motion: reduce)",e);return At(()=>t.value?"reduce":"no-preference")}var AD=Object.defineProperty,ol=Object.getOwnPropertySymbols,e0=Object.prototype.hasOwnProperty,n0=Object.prototype.propertyIsEnumerable,r_=(e,t,n)=>t in e?AD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,TD=(e,t)=>{for(var n in t||(t={}))e0.call(t,n)&&r_(e,n,t[n]);if(ol)for(var n of ol(t))n0.call(t,n)&&r_(e,n,t[n]);return e},ED=(e,t)=>{var n={};for(var i in e)e0.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&ol)for(var i of ol(e))t.indexOf(i)<0&&n0.call(e,i)&&(n[i]=e[i]);return n};const ID=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:1/0,value:31536e6,name:"year"}],DD={justNow:"just now",past:e=>e.match(/\d/)?` + "`" + `${e} ago` + "`" + `:e,future:e=>e.match(/\d/)?` + "`" + `in ${e}` + "`" + `:e,month:(e,t)=>e===1?t?"last month":"next month":` + "`" + `${e} month${e>1?"s":""}` + "`" + `,year:(e,t)=>e===1?t?"last year":"next year":` + "`" + `${e} year${e>1?"s":""}` + "`" + `,day:(e,t)=>e===1?t?"yesterday":"tomorrow":` + "`" + `${e} day${e>1?"s":""}` + "`" + `,week:(e,t)=>e===1?t?"last week":"next week":` + "`" + `${e} week${e>1?"s":""}` + "`" + `,hour:e=>` + "`" + `${e} hour${e>1?"s":""}` + "`" + `,minute:e=>` + "`" + `${e} minute${e>1?"s":""}` + "`" + `,second:e=>` + "`" + `${e} second${e>1?"s":""}` + "`" + `,invalid:""},LD=e=>e.toISOString().slice(0,10);function $D(e,t={}){const{controls:n=!1,updateInterval:i=3e4}=t,r=Qv({interval:i,controls:!0}),{now:o}=r,l=ED(r,["now"]),u=At(()=>RD(new Date(Xt(e)),t,Yt(o.value)));return n?TD({timeAgo:u},l):u}function RD(e,t={},n=Date.now()){var i;const{max:r,messages:o=DD,fullDateFormatter:l=LD,units:u=ID,showSecond:c=!1,rounding:h="round"}=t,d=typeof h=="number"?O=>+O.toFixed(h):Math[h],g=+n-+e,_=Math.abs(g);function m(O,C){return d(Math.abs(O)/C.value)}function x(O,C){const L=m(O,C),A=O>0,k=b(C.name,L,A);return b(A?"past":"future",k,A)}function b(O,C,L){const A=o[O];return typeof A=="function"?A(C,L):A.replace("{0}",C.toString())}if(_<6e4&&!c)return o.justNow;if(typeof r=="number"&&_>r)return l(new Date(e));if(typeof r=="string"){const O=(i=u.find(C=>C.name===r))==null?void 0:i.max;if(O&&_>O)return l(new Date(e))}for(const[O,C]of u.entries()){if(m(g,C)<=0&&u[O-1])return x(g,u[O-1]);if(_<C.max)return x(g,C)}return o.invalid}var kD=Object.defineProperty,s_=Object.getOwnPropertySymbols,FD=Object.prototype.hasOwnProperty,BD=Object.prototype.propertyIsEnumerable,o_=(e,t,n)=>t in e?kD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,HD=(e,t)=>{for(var n in t||(t={}))FD.call(t,n)&&o_(e,n,t[n]);if(s_)for(var n of s_(t))BD.call(t,n)&&o_(e,n,t[n]);return e};function zD(e={}){const{controls:t=!1,offset:n=0,immediate:i=!0,interval:r="requestAnimationFrame",callback:o}=e,l=R(rl()+n),u=()=>l.value=rl()+n,c=o?()=>{u(),o(l.value)}:u,h=r==="requestAnimationFrame"?qv(c,{immediate:i}):Nv(c,r,{immediate:i});return t?HD({timestamp:l},h):l}var ND=Object.defineProperty,a_=Object.getOwnPropertySymbols,WD=Object.prototype.hasOwnProperty,UD=Object.prototype.propertyIsEnumerable,l_=(e,t,n)=>t in e?ND(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,VD=(e,t)=>{for(var n in t||(t={}))WD.call(t,n)&&l_(e,n,t[n]);if(a_)for(var n of a_(t))UD.call(t,n)&&l_(e,n,t[n]);return e};const jD={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};VD({linear:WE},jD);function YD(e,t){const{containerStyle:n,wrapperProps:i,scrollTo:r,calculateRange:o,currentList:l,containerRef:u}="itemHeight"in t?qD(t,e):XD(t,e);return{list:l,scrollTo:r,containerProps:{ref:u,onScroll:()=>{o()},style:n},wrapperProps:i}}function i0(e){const t=R(null),n=Gv(t),i=R([]),r=co(e);return{state:R({start:0,end:10}),source:r,currentList:i,size:n,containerRef:t}}function r0(e,t,n){return i=>{if(typeof n=="number")return Math.ceil(i/n);const{start:r=0}=e.value;let o=0,l=0;for(let u=r;u<t.value.length;u++){const c=n(u);if(o+=c,o>=i){l=u;break}}return l-r}}function s0(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let i=0,r=0;for(let o=0;o<e.value.length;o++){const l=t(o);if(i+=l,i>=n){r=o;break}}return r+1}}function o0(e,t,n,i,{containerRef:r,state:o,currentList:l,source:u}){return()=>{const c=r.value;if(c){const h=n(e==="vertical"?c.scrollTop:c.scrollLeft),d=i(e==="vertical"?c.clientHeight:c.clientWidth),g=h-t,_=h+d+t;o.value={start:g<0?0:g,end:_>u.value.length?u.value.length:_},l.value=u.value.slice(o.value.start,o.value.end).map((m,x)=>({data:m,index:x+o.value.start}))}}}function a0(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((r,o,l)=>r+e(l),0)}function l0(e,t,n){Mt([e.width,e.height,t],()=>{n()})}function u0(e,t){return At(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,i,r)=>n+e(r),0))}const KD={horizontal:"scrollLeft",vertical:"scrollTop"};function c0(e,t,n,i){return r=>{i.value&&(i.value[KD[e]]=n(r),t())}}function XD(e,t){const n=i0(t),{state:i,source:r,currentList:o,size:l,containerRef:u}=n,c={overflowX:"auto"},{itemWidth:h,overscan:d=5}=e,g=r0(i,r,h),_=s0(r,h),m=o0("horizontal",d,_,g,n),x=a0(h,r),b=At(()=>x(i.value.start)),O=u0(h,r);l0(l,t,m);const C=c0("horizontal",m,x,u),L=At(()=>({style:{height:"100%",width:` + "`" + `${O.value-b.value}px` + "`" + `,marginLeft:` + "`" + `${b.value}px` + "`" + `,display:"flex"}}));return{scrollTo:C,calculateRange:m,wrapperProps:L,containerStyle:c,currentList:o,containerRef:u}}function qD(e,t){const n=i0(t),{state:i,source:r,currentList:o,size:l,containerRef:u}=n,c={overflowY:"auto"},{itemHeight:h,overscan:d=5}=e,g=r0(i,r,h),_=s0(r,h),m=o0("vertical",d,_,g,n),x=a0(h,r),b=At(()=>x(i.value.start)),O=u0(h,r);l0(l,t,m);const C=c0("vertical",m,x,u),L=At(()=>({style:{width:"100%",height:` + "`" + `${O.value-b.value}px` + "`" + `,marginTop:` + "`" + `${b.value}px` + "`" + `}}));return{calculateRange:m,scrollTo:C,containerStyle:c,wrapperProps:L,currentList:o,containerRef:u}}function GD({window:e=ce}={}){if(!e)return R(!1);const t=R(e.document.hasFocus());return vt(e,"blur",()=>{t.value=!1}),vt(e,"focus",()=>{t.value=!0}),t}function JD(e={}){const{window:t=ce,initialWidth:n=1/0,initialHeight:i=1/0,listenOrientation:r=!0,includeScrollbar:o=!0}=e,l=R(n),u=R(i),c=()=>{t&&(o?(l.value=t.innerWidth,u.value=t.innerHeight):(l.value=t.document.documentElement.clientWidth,u.value=t.document.documentElement.clientHeight))};return c(),ps(c),vt("resize",c,{passive:!0}),r&&vt("orientationchange",c,{passive:!0}),{width:l,height:u}}It({name:"OnClickOutside",props:["as","options"],emits:["trigger"],setup(e,{slots:t,emit:n}){const i=R();return fI(i,r=>{n("trigger",r)},e.options),()=>{if(t.default)return Ye(e.as||"div",{ref:i},t.default())}}});function On(e){var t;const n=Xt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Bn=ai?window:void 0;function tn(...e){let t,n,i,r;if(Fv(e[0])||Array.isArray(e[0])?([n,i,r]=e,t=Bn):[t,n,i,r]=e,!t)return Kn;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const o=[],l=()=>{o.forEach(d=>d()),o.length=0},u=(d,g,_)=>(d.addEventListener(g,_,r),()=>d.removeEventListener(g,_,r)),c=Mt(()=>On(t),d=>{l(),d&&o.push(...n.flatMap(g=>i.map(_=>u(d,g,_))))},{immediate:!0,flush:"post"}),h=()=>{c(),l()};return en(h),h}function u_(e,t,n={}){const{window:i=Bn,ignore:r=[],capture:o=!0,detectIframe:l=!1}=n;if(!i)return;let u=!0,c;const h=m=>r.some(x=>{if(typeof x=="string")return Array.from(i.document.querySelectorAll(x)).some(b=>b===m.target||m.composedPath().includes(b));{const b=On(x);return b&&(m.target===b||m.composedPath().includes(b))}}),d=m=>{i.clearTimeout(c);const x=On(e);if(!(!x||x===m.target||m.composedPath().includes(x))){if(m.detail===0&&(u=!h(m)),!u){u=!0;return}t(m)}},g=[tn(i,"click",d,{passive:!0,capture:o}),tn(i,"pointerdown",m=>{const x=On(e);x&&(u=!m.composedPath().includes(x)&&!h(m))},{passive:!0}),tn(i,"pointerup",m=>{if(m.button===0){const x=m.composedPath();m.composedPath=()=>x,c=i.setTimeout(()=>d(m),50)}},{passive:!0}),l&&tn(i,"blur",m=>{var x;const b=On(e);((x=i.document.activeElement)==null?void 0:x.tagName)==="IFRAME"&&!(b!=null&&b.contains(i.document.activeElement))&&t(m)})].filter(Boolean);return()=>g.forEach(m=>m())}const ZD={[li.mounted](e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=u_(e,t.value,{capture:n});else{const[i,r]=t.value;e.__onClickOutside_stop=u_(e,i,Object.assign({capture:n},r))}},[li.unmounted](e){e.__onClickOutside_stop()}},QD=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0;function c_(...e){let t,n,i={};e.length===3?(t=e[0],n=e[1],i=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],i=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=Bn,eventName:o="keydown",passive:l=!1}=i,u=QD(t);return tn(r,o,h=>{u(h)&&n(h)},l)}var tL=Object.defineProperty,f_=Object.getOwnPropertySymbols,eL=Object.prototype.hasOwnProperty,nL=Object.prototype.propertyIsEnumerable,h_=(e,t,n)=>t in e?tL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iL=(e,t)=>{for(var n in t||(t={}))eL.call(t,n)&&h_(e,n,t[n]);if(f_)for(var n of f_(t))nL.call(t,n)&&h_(e,n,t[n]);return e};li.mounted+"";const rL=500;function Sc(e,t,n){var i,r;const o=At(()=>On(e));let l;function u(){l&&(clearTimeout(l),l=void 0)}function c(d){var g,_,m,x;((g=n==null?void 0:n.modifiers)==null?void 0:g.self)&&d.target!==o.value||(u(),(_=n==null?void 0:n.modifiers)!=null&&_.prevent&&d.preventDefault(),(m=n==null?void 0:n.modifiers)!=null&&m.stop&&d.stopPropagation(),l=setTimeout(()=>t(d),(x=n==null?void 0:n.delay)!=null?x:rL))}const h={capture:(i=n==null?void 0:n.modifiers)==null?void 0:i.capture,once:(r=n==null?void 0:n.modifiers)==null?void 0:r.once};tn(o,"pointerdown",c,h),tn(o,"pointerup",u,h),tn(o,"pointerleave",u,h)}It({name:"OnLongPress",props:["as","options"],emits:["trigger"],setup(e,{slots:t,emit:n}){const i=R();return Sc(i,r=>{n("trigger",r)},e.options),()=>{if(t.default)return Ye(e.as||"div",{ref:i},t.default())}}});li.mounted+"";It({name:"UseActiveElement",setup(e,{slots:t}){const n=Ct({element:hI()});return()=>{if(t.default)return t.default(n)}}});It({name:"UseBattery",setup(e,{slots:t}){const n=Ct(dI(e));return()=>{if(t.default)return t.default(n)}}});It({name:"UseBrowserLocation",setup(e,{slots:t}){const n=Ct(pI());return()=>{if(t.default)return t.default(n)}}});const Pc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Mc="__vueuse_ssr_handlers__";Pc[Mc]=Pc[Mc]||{};const sL=Pc[Mc];function f0(e,t){return sL[e]||t}function oL(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var aL=Object.defineProperty,d_=Object.getOwnPropertySymbols,lL=Object.prototype.hasOwnProperty,uL=Object.prototype.propertyIsEnumerable,p_=(e,t,n)=>t in e?aL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g_=(e,t)=>{for(var n in t||(t={}))lL.call(t,n)&&p_(e,n,t[n]);if(d_)for(var n of d_(t))uL.call(t,n)&&p_(e,n,t[n]);return e};const cL={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function fL(e,t,n,i={}){var r;const{flush:o="pre",deep:l=!0,listenToStorageChanges:u=!0,writeDefaults:c=!0,mergeDefaults:h=!1,shallow:d,window:g=Bn,eventFilter:_,onError:m=F=>{console.error(F)}}=i,x=(d?co:R)(t);if(!n)try{n=f0("getDefaultStorage",()=>{var F;return(F=Bn)==null?void 0:F.localStorage})()}catch(F){m(F)}if(!n)return x;const b=Xt(t),O=oL(b),C=(r=i.serializer)!=null?r:cL[O],{pause:L,resume:A}=Vv(x,()=>k(x.value),{flush:o,deep:l,eventFilter:_});return g&&u&&tn(g,"storage",U),U(),x;function k(F){try{if(F==null)n.removeItem(e);else{const N=C.write(F),J=n.getItem(e);J!==N&&(n.setItem(e,N),g&&(g==null||g.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:J,newValue:N,storageArea:n}))))}}catch(N){m(N)}}function $(F){const N=F?F.newValue:n.getItem(e);if(N==null)return c&&b!==null&&n.setItem(e,C.write(b)),b;if(!F&&h){const J=C.read(N);return ao(h)?h(J,b):O==="object"&&!Array.isArray(J)?g_(g_({},b),J):J}else return typeof N!="string"?N:C.read(N)}function U(F){if(!(F&&F.storageArea!==n)){if(F&&F.key==null){x.value=b;return}if(!(F&&F.key!==e)){L();try{x.value=$(F)}catch(N){m(N)}finally{F?ds(A):A()}}}}}function vf(e,t=!1){const n=R(),i=()=>n.value=Boolean(e());return i(),ps(i,t),n}function hL(e,t={}){const{window:n=Bn}=t,i=vf(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const o=R(!1),l=()=>{!r||("removeEventListener"in r?r.removeEventListener("change",u):r.removeListener(u))},u=()=>{!i.value||(l(),r=n.matchMedia(_f(e).value),o.value=r.matches,"addEventListener"in r?r.addEventListener("change",u):r.addListener(u))};return Tm(u),en(()=>l()),o}function dL(e){return hL("(prefers-color-scheme: dark)",e)}var pL=Object.defineProperty,__=Object.getOwnPropertySymbols,gL=Object.prototype.hasOwnProperty,_L=Object.prototype.propertyIsEnumerable,m_=(e,t,n)=>t in e?pL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mL=(e,t)=>{for(var n in t||(t={}))gL.call(t,n)&&m_(e,n,t[n]);if(__)for(var n of __(t))_L.call(t,n)&&m_(e,n,t[n]);return e};function vL(e={}){const{selector:t="html",attribute:n="class",initialValue:i="auto",window:r=Bn,storage:o,storageKey:l="vueuse-color-scheme",listenToStorageChanges:u=!0,storageRef:c,emitAuto:h}=e,d=mL({auto:"",light:"light",dark:"dark"},e.modes||{}),g=dL({window:r}),_=At(()=>g.value?"dark":"light"),m=c||(l==null?R(i):fL(l,i,o,{window:r,listenToStorageChanges:u})),x=At({get(){return m.value==="auto"&&!h?_.value:m.value},set(L){m.value=L}}),b=f0("updateHTMLAttrs",(L,A,k)=>{const $=r==null?void 0:r.document.querySelector(L);if(!!$)if(A==="class"){const U=k.split(/\s/g);Object.values(d).flatMap(F=>(F||"").split(/\s/g)).filter(Boolean).forEach(F=>{U.includes(F)?$.classList.add(F):$.classList.remove(F)})}else $.setAttribute(A,k)});function O(L){var A;const k=L==="auto"?_.value:L;b(t,n,(A=d[k])!=null?A:k)}function C(L){e.onChanged?e.onChanged(L,O):O(L)}return Mt(x,C,{flush:"post",immediate:!0}),h&&Mt(_,()=>C(x.value),{flush:"post"}),ps(()=>C(x.value)),x}It({name:"UseColorMode",props:["selector","attribute","modes","onChanged","storageKey","storage","emitAuto"],setup(e,{slots:t}){const n=vL(e),i=Ct({mode:n});return()=>{if(t.default)return t.default(i)}}});It({name:"UseDark",props:["selector","attribute","valueDark","valueLight","onChanged","storageKey","storage"],setup(e,{slots:t}){const n=LI(e),i=Ct({isDark:n,toggleDark:tI(n)});return()=>{if(t.default)return t.default(i)}}});It({name:"UseDeviceMotion",setup(e,{slots:t}){const n=Ct($I());return()=>{if(t.default)return t.default(n)}}});It({name:"UseDeviceOrientation",setup(e,{slots:t}){const n=Ct(RI());return()=>{if(t.default)return t.default(n)}}});It({name:"UseDevicePixelRatio",setup(e,{slots:t}){const n=Ct({pixelRatio:kI()});return()=>{if(t.default)return t.default(n)}}});It({name:"UseDevicesList",props:["onUpdated","requestPermissions","constraints"],setup(e,{slots:t}){const n=Ct(BI(e));return()=>{if(t.default)return t.default(n)}}});It({name:"UseDocumentVisibility",setup(e,{slots:t}){const n=Ct({visibility:HI()});return()=>{if(t.default)return t.default(n)}}});var bL=Object.defineProperty,yL=Object.defineProperties,xL=Object.getOwnPropertyDescriptors,v_=Object.getOwnPropertySymbols,wL=Object.prototype.hasOwnProperty,OL=Object.prototype.propertyIsEnumerable,b_=(e,t,n)=>t in e?bL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,SL=(e,t)=>{for(var n in t||(t={}))wL.call(t,n)&&b_(e,n,t[n]);if(v_)for(var n of v_(t))OL.call(t,n)&&b_(e,n,t[n]);return e},PL=(e,t)=>yL(e,xL(t));It({name:"UseDraggable",props:["storageKey","storageType","initialValue","exact","preventDefault","stopPropagation","pointerTypes","as","handle"],setup(e,{slots:t}){const n=R(),i=At(()=>{var l;return(l=e.handle)!=null?l:n.value}),r=e.storageKey?Kv(e.storageKey,Xt(e.initialValue)||{x:0,y:0},ai?e.storageType==="session"?sessionStorage:localStorage:void 0):e.initialValue||{x:0,y:0},o=Ct(KI(n,PL(SL({},e),{handle:i,initialValue:r})));return()=>{if(t.default)return Ye(e.as||"div",{ref:n,style:` + "`" + `touch-action:none;${o.style}` + "`" + `},t.default(o))}}});It({name:"UseElementBounding",props:["box","as"],setup(e,{slots:t}){const n=R(),i=Ct(JI(n));return()=>{if(t.default)return Ye(e.as||"div",{ref:n},t.default(i))}}});function ML(e){const t=R(!1);return tn(e,"mouseenter",()=>t.value=!0),tn(e,"mouseleave",()=>t.value=!1),t}li.mounted+"";It({name:"UseElementSize",props:["width","height","box"],setup(e,{slots:t}){const n=R(),i=Ct(Gv(n,{width:e.width,height:e.height},{box:e.box}));return()=>{if(t.default)return Ye(e.as||"div",{ref:n},t.default(i))}}});var y_=Object.getOwnPropertySymbols,CL=Object.prototype.hasOwnProperty,AL=Object.prototype.propertyIsEnumerable,TL=(e,t)=>{var n={};for(var i in e)CL.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&y_)for(var i of y_(e))t.indexOf(i)<0&&AL.call(e,i)&&(n[i]=e[i]);return n};function EL(e,t,n={}){const i=n,{window:r=Bn}=i,o=TL(i,["window"]);let l;const u=vf(()=>r&&"ResizeObserver"in r),c=()=>{l&&(l.disconnect(),l=void 0)},h=Mt(()=>On(e),g=>{c(),u.value&&r&&g&&(l=new ResizeObserver(t),l.observe(g,o))},{immediate:!0,flush:"post"}),d=()=>{c(),h()};return en(d),{isSupported:u,stop:d}}function IL(e,t={width:0,height:0},n={}){const{box:i="content-box"}=n,r=R(t.width),o=R(t.height);return EL(e,([l])=>{const u=i==="border-box"?l.borderBoxSize:i==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;u?(r.value=u.reduce((c,{inlineSize:h})=>c+h,0),o.value=u.reduce((c,{blockSize:h})=>c+h,0)):(r.value=l.contentRect.width,o.value=l.contentRect.height)},n),Mt(()=>On(e),l=>{r.value=l?t.width:0,o.value=l?t.height:0}),{width:r,height:o}}li.mounted+"";It({name:"UseElementVisibility",props:["as"],setup(e,{slots:t}){const n=R(),i=Ct({isVisible:ZI(n)});return()=>{if(t.default)return Ye(e.as||"div",{ref:n},t.default(i))}}});function x_(e,{window:t=Bn,scrollTarget:n}={}){const i=R(!1),r=()=>{if(!t)return;const o=t.document,l=On(e);if(!l)i.value=!1;else{const u=l.getBoundingClientRect();i.value=u.top<=(t.innerHeight||o.documentElement.clientHeight)&&u.left<=(t.innerWidth||o.documentElement.clientWidth)&&u.bottom>=0&&u.right>=0}};return Mt(()=>On(e),()=>r(),{immediate:!0,flush:"post"}),t&&tn(n||t,"scroll",r,{capture:!1,passive:!0}),i}li.mounted+"";It({name:"UseEyeDropper",props:{sRGBHex:String},setup(e,{slots:t}){const n=Ct(QI());return()=>{if(t.default)return t.default(n)}}});It({name:"UseFullscreen",props:["as"],setup(e,{slots:t}){const n=R(),i=Ct(tD(n));return()=>{if(t.default)return Ye(e.as||"div",{ref:n},t.default(i))}}});It({name:"UseGeolocation",props:["enableHighAccuracy","maximumAge","timeout","navigator"],setup(e,{slots:t}){const n=Ct(eD(e));return()=>{if(t.default)return t.default(n)}}});It({name:"UseIdle",props:["timeout","events","listenForVisibilityChange","initialState"],setup(e,{slots:t}){const n=Ct(rD(e.timeout,e));return()=>{if(t.default)return t.default(n)}}});function DL(e,t,n){const{immediate:i=!0,delay:r=0,onError:o=Kn,resetOnExecute:l=!0,shallow:u=!0,throwError:c}=n!=null?n:{},h=u?co(t):R(t),d=R(!1),g=R(!1),_=R(void 0);async function m(x=0,...b){l&&(h.value=t),_.value=void 0,d.value=!1,g.value=!0,x>0&&await NE(x);const O=typeof e=="function"?e(...b):e;try{const C=await O;h.value=C,d.value=!0}catch(C){if(_.value=C,o(C),c)throw _}finally{g.value=!1}return h.value}return i&&m(r),{state:h,isReady:d,isLoading:g,error:_,execute:m}}var LL=Object.defineProperty,w_=Object.getOwnPropertySymbols,$L=Object.prototype.hasOwnProperty,RL=Object.prototype.propertyIsEnumerable,O_=(e,t,n)=>t in e?LL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kL=(e,t)=>{for(var n in t||(t={}))$L.call(t,n)&&O_(e,n,t[n]);if(w_)for(var n of w_(t))RL.call(t,n)&&O_(e,n,t[n]);return e};async function FL(e){return new Promise((t,n)=>{const i=new Image,{src:r,srcset:o,sizes:l}=e;i.src=r,o&&(i.srcset=o),l&&(i.sizes=l),i.onload=()=>t(i),i.onerror=n})}const BL=(e,t={})=>{const n=DL(()=>FL(Xt(e)),void 0,kL({resetOnExecute:!0},t));return Mt(()=>Xt(e),()=>n.execute(t.delay),{deep:!0}),n};It({name:"UseImage",props:["src","srcset","sizes","as"],setup(e,{slots:t}){const n=Ct(BL(e));return()=>n.isLoading&&t.loading?t.loading(n):n.error&&t.error?t.error(n.error):t.default?t.default(n):Ye(e.as||"img",e)}});const S_=1;function Cc(e,t={}){const{throttle:n=0,idle:i=200,onStop:r=Kn,onScroll:o=Kn,offset:l={left:0,right:0,top:0,bottom:0},eventListenerOptions:u={capture:!1,passive:!0},behavior:c="auto"}=t,h=R(0),d=R(0),g=At({get(){return h.value},set(A){m(A,void 0)}}),_=At({get(){return d.value},set(A){m(void 0,A)}});function m(A,k){var $,U,F;const N=Xt(e);!N||(F=N instanceof Document?document.body:N)==null||F.scrollTo({top:($=Xt(k))!=null?$:_.value,left:(U=Xt(A))!=null?U:g.value,behavior:Xt(c)})}const x=R(!1),b=Ct({left:!0,right:!1,top:!0,bottom:!1}),O=Ct({left:!1,right:!1,top:!1,bottom:!1}),C=Hv(A=>{x.value=!1,O.left=!1,O.right=!1,O.top=!1,O.bottom=!1,r(A)},n+i),L=A=>{const k=A.target===document?A.target.documentElement:A.target,$=k.scrollLeft;O.left=$<h.value,O.right=$>d.value,b.left=$<=0+(l.left||0),b.right=$+k.clientWidth>=k.scrollWidth-(l.right||0)-S_,h.value=$;let U=k.scrollTop;A.target===document&&!U&&(U=document.body.scrollTop),O.top=U<d.value,O.bottom=U>d.value,b.top=U<=0+(l.top||0),b.bottom=U+k.clientHeight>=k.scrollHeight-(l.bottom||0)-S_,d.value=U,x.value=!0,C(A),o(A)};return tn(e,"scroll",n?YE(L,n,!0,!1):L,u),{x:g,y:_,isScrolling:x,arrivedState:b,directions:O}}var HL=Object.defineProperty,zL=Object.defineProperties,NL=Object.getOwnPropertyDescriptors,P_=Object.getOwnPropertySymbols,WL=Object.prototype.hasOwnProperty,UL=Object.prototype.propertyIsEnumerable,M_=(e,t,n)=>t in e?HL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,C_=(e,t)=>{for(var n in t||(t={}))WL.call(t,n)&&M_(e,n,t[n]);if(P_)for(var n of P_(t))UL.call(t,n)&&M_(e,n,t[n]);return e},VL=(e,t)=>zL(e,NL(t));function A_(e,t,n={}){var i,r;const o=(i=n.direction)!=null?i:"bottom",l=Ct(Cc(e,VL(C_({},n),{offset:C_({[o]:(r=n.distance)!=null?r:0},n.offset)})));Mt(()=>l.arrivedState[o],async u=>{var c,h;if(u){const d=Xt(e),g={height:(c=d==null?void 0:d.scrollHeight)!=null?c:0,width:(h=d==null?void 0:d.scrollWidth)!=null?h:0};await t(l),n.preserveScrollPosition&&d&&ds(()=>{d.scrollTo({top:d.scrollHeight-g.height,left:d.scrollWidth-g.width})})}})}li.mounted+"";function T_(e,t,n={}){const{root:i,rootMargin:r="0px",threshold:o=.1,window:l=Bn}=n,u=vf(()=>l&&"IntersectionObserver"in l);let c=Kn;const h=u.value?Mt(()=>({el:On(e),root:On(i)}),({el:g,root:_})=>{if(c(),!g)return;const m=new IntersectionObserver(t,{root:_,rootMargin:r,threshold:o});m.observe(g),c=()=>{m.disconnect(),c=Kn}},{immediate:!0,flush:"post"}):Kn,d=()=>{c(),h()};return en(d),{isSupported:u,stop:d}}li.mounted+"";It({name:"UseMouse",props:["touch","resetOnTouchEnds","initialValue"],setup(e,{slots:t}){const n=Ct(Jv(e));return()=>{if(t.default)return t.default(n)}}});It({name:"UseMouseElement",props:["handleOutside","as"],setup(e,{slots:t}){const n=R(),i=Ct(sD(n,e));return()=>{if(t.default)return Ye(e.as||"div",{ref:n},t.default(i))}}});var jL=Object.defineProperty,YL=Object.defineProperties,KL=Object.getOwnPropertyDescriptors,E_=Object.getOwnPropertySymbols,XL=Object.prototype.hasOwnProperty,qL=Object.prototype.propertyIsEnumerable,I_=(e,t,n)=>t in e?jL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,GL=(e,t)=>{for(var n in t||(t={}))XL.call(t,n)&&I_(e,n,t[n]);if(E_)for(var n of E_(t))qL.call(t,n)&&I_(e,n,t[n]);return e},JL=(e,t)=>YL(e,KL(t));It({name:"UseMousePressed",props:["touch","initialValue","as"],setup(e,{slots:t}){const n=R(),i=Ct(oD(JL(GL({},e),{target:n})));return()=>{if(t.default)return Ye(e.as||"div",{ref:n},t.default(i))}}});It({name:"UseNetwork",setup(e,{slots:t}){const n=Ct(Zv());return()=>{if(t.default)return t.default(n)}}});var ZL=Object.defineProperty,QL=Object.defineProperties,t$=Object.getOwnPropertyDescriptors,D_=Object.getOwnPropertySymbols,e$=Object.prototype.hasOwnProperty,n$=Object.prototype.propertyIsEnumerable,L_=(e,t,n)=>t in e?ZL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,i$=(e,t)=>{for(var n in t||(t={}))e$.call(t,n)&&L_(e,n,t[n]);if(D_)for(var n of D_(t))n$.call(t,n)&&L_(e,n,t[n]);return e},r$=(e,t)=>QL(e,t$(t));It({name:"UseNow",props:["interval"],setup(e,{slots:t}){const n=Ct(Qv(r$(i$({},e),{controls:!0})));return()=>{if(t.default)return t.default(n)}}});It({name:"UseObjectUrl",props:["object"],setup(e,{slots:t}){const n=ym(e,"object"),i=fD(n);return()=>{if(t.default&&i.value)return t.default(i)}}});var s$=Object.defineProperty,o$=Object.defineProperties,a$=Object.getOwnPropertyDescriptors,$_=Object.getOwnPropertySymbols,l$=Object.prototype.hasOwnProperty,u$=Object.prototype.propertyIsEnumerable,R_=(e,t,n)=>t in e?s$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c$=(e,t)=>{for(var n in t||(t={}))l$.call(t,n)&&R_(e,n,t[n]);if($_)for(var n of $_(t))u$.call(t,n)&&R_(e,n,t[n]);return e},f$=(e,t)=>o$(e,a$(t));It({name:"UseOffsetPagination",props:["total","page","pageSize","onPageChange","onPageSizeChange","onPageCountChange"],emits:["page-change","page-size-change","page-count-change"],setup(e,{slots:t,emit:n}){const i=Ct(hD(f$(c$({},e),{onPageChange(...r){var o;(o=e.onPageChange)==null||o.call(e,...r),n("page-change",...r)},onPageSizeChange(...r){var o;(o=e.onPageSizeChange)==null||o.call(e,...r),n("page-size-change",...r)},onPageCountChange(...r){var o;(o=e.onPageCountChange)==null||o.call(e,...r),n("page-count-change",...r)}})));return()=>{if(t.default)return t.default(i)}}});It({name:"UseOnline",setup(e,{slots:t}){const n=Ct({isOnline:dD()});return()=>{if(t.default)return t.default(n)}}});It({name:"UsePageLeave",setup(e,{slots:t}){const n=Ct({isLeft:pD()});return()=>{if(t.default)return t.default(n)}}});var h$=Object.defineProperty,d$=Object.defineProperties,p$=Object.getOwnPropertyDescriptors,k_=Object.getOwnPropertySymbols,g$=Object.prototype.hasOwnProperty,_$=Object.prototype.propertyIsEnumerable,F_=(e,t,n)=>t in e?h$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m$=(e,t)=>{for(var n in t||(t={}))g$.call(t,n)&&F_(e,n,t[n]);if(k_)for(var n of k_(t))_$.call(t,n)&&F_(e,n,t[n]);return e},v$=(e,t)=>d$(e,p$(t));It({name:"UsePointer",props:["pointerTypes","initialValue","target"],setup(e,{slots:t}){const n=R(null),i=Ct(OD(v$(m$({},e),{target:e.target==="self"?n:Bn})));return()=>{if(t.default)return t.default(i,{ref:n})}}});It({name:"UsePreferredColorScheme",setup(e,{slots:t}){const n=Ct({colorScheme:SD()});return()=>{if(t.default)return t.default(n)}}});It({name:"UsePreferredContrast",setup(e,{slots:t}){const n=Ct({contrast:PD()});return()=>{if(t.default)return t.default(n)}}});It({name:"UsePreferredDark",setup(e,{slots:t}){const n=Ct({prefersDark:mf()});return()=>{if(t.default)return t.default(n)}}});It({name:"UsePreferredLanguages",setup(e,{slots:t}){const n=Ct({languages:MD()});return()=>{if(t.default)return t.default(n)}}});It({name:"UsePreferredReducedMotion",setup(e,{slots:t}){const n=Ct({motion:CD()});return()=>{if(t.default)return t.default(n)}}});function Pa(e,t,{window:n=Bn,initialValue:i=""}={}){const r=R(i),o=At(()=>{var l;return On(t)||((l=n==null?void 0:n.document)==null?void 0:l.documentElement)});return Mt([o,()=>Xt(e)],([l,u])=>{var c;if(l&&n){const h=(c=n.getComputedStyle(l).getPropertyValue(u))==null?void 0:c.trim();r.value=h||i}},{immediate:!0}),Mt(r,l=>{var u;(u=o.value)!=null&&u.style&&o.value.style.setProperty(Xt(e),l)}),r}const B_="--vueuse-safe-area-top",H_="--vueuse-safe-area-right",z_="--vueuse-safe-area-bottom",N_="--vueuse-safe-area-left";function b$(){const e=R(""),t=R(""),n=R(""),i=R("");if(ai){const o=Pa(B_),l=Pa(H_),u=Pa(z_),c=Pa(N_);o.value="env(safe-area-inset-top, 0px)",l.value="env(safe-area-inset-right, 0px)",u.value="env(safe-area-inset-bottom, 0px)",c.value="env(safe-area-inset-left, 0px)",r(),tn("resize",Hv(r))}function r(){e.value=Ma(B_),t.value=Ma(H_),n.value=Ma(z_),i.value=Ma(N_)}return{top:e,right:t,bottom:n,left:i,update:r}}function Ma(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}It({name:"UseScreenSafeArea",props:{top:Boolean,right:Boolean,bottom:Boolean,left:Boolean},setup(e,{slots:t}){const{top:n,right:i,bottom:r,left:o}=b$();return()=>{if(t.default)return Ye("div",{style:{paddingTop:e.top?n.value:"",paddingRight:e.right?i.value:"",paddingBottom:e.bottom?r.value:"",paddingLeft:e.left?o.value:"",boxSizing:"border-box",maxHeight:"100vh",maxWidth:"100vw",overflow:"auto"}},t.default())}}});var y$=Object.defineProperty,x$=Object.defineProperties,w$=Object.getOwnPropertyDescriptors,W_=Object.getOwnPropertySymbols,O$=Object.prototype.hasOwnProperty,S$=Object.prototype.propertyIsEnumerable,U_=(e,t,n)=>t in e?y$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P$=(e,t)=>{for(var n in t||(t={}))O$.call(t,n)&&U_(e,n,t[n]);if(W_)for(var n of W_(t))S$.call(t,n)&&U_(e,n,t[n]);return e},M$=(e,t)=>x$(e,w$(t));li.mounted+"";function C$(e){const t=e||window.event;return t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}function A$(e,t=!1){const n=R(t);let i=null,r;Mt(_f(e),u=>{if(u){const c=u;r=c.style.overflow,n.value&&(c.style.overflow="hidden")}},{immediate:!0});const o=()=>{const u=Xt(e);!u||n.value||(Rg&&(i=tn(u,"touchmove",C$,{passive:!1})),u.style.overflow="hidden",n.value=!0)},l=()=>{const u=Xt(e);!u||!n.value||(Rg&&(i==null||i()),u.style.overflow=r,n.value=!1)};return en(l),At({get(){return n.value},set(u){u?o():l()}})}const T$=()=>{let e=!1;const t=R(!1);return(n,i)=>{if(t.value=i.value,e)return;e=!0;const r=A$(n,i.value);Mt(t,o=>r.value=o)}};T$();var E$=Object.defineProperty,I$=Object.defineProperties,D$=Object.getOwnPropertyDescriptors,V_=Object.getOwnPropertySymbols,L$=Object.prototype.hasOwnProperty,$$=Object.prototype.propertyIsEnumerable,j_=(e,t,n)=>t in e?E$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R$=(e,t)=>{for(var n in t||(t={}))L$.call(t,n)&&j_(e,n,t[n]);if(V_)for(var n of V_(t))$$.call(t,n)&&j_(e,n,t[n]);return e},k$=(e,t)=>I$(e,D$(t));It({name:"UseTimeAgo",props:["time","updateInterval","max","fullDateFormatter","messages","showSecond"],setup(e,{slots:t}){const n=Ct($D(()=>e.time,k$(R$({},e),{controls:!0})));return()=>{if(t.default)return t.default(n)}}});var F$=Object.defineProperty,B$=Object.defineProperties,H$=Object.getOwnPropertyDescriptors,Y_=Object.getOwnPropertySymbols,z$=Object.prototype.hasOwnProperty,N$=Object.prototype.propertyIsEnumerable,K_=(e,t,n)=>t in e?F$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,W$=(e,t)=>{for(var n in t||(t={}))z$.call(t,n)&&K_(e,n,t[n]);if(Y_)for(var n of Y_(t))N$.call(t,n)&&K_(e,n,t[n]);return e},U$=(e,t)=>B$(e,H$(t));It({name:"UseTimestamp",props:["immediate","interval","offset"],setup(e,{slots:t}){const n=Ct(zD(U$(W$({},e),{controls:!0})));return()=>{if(t.default)return t.default(n)}}});var V$=Object.defineProperty,X_=Object.getOwnPropertySymbols,j$=Object.prototype.hasOwnProperty,Y$=Object.prototype.propertyIsEnumerable,q_=(e,t,n)=>t in e?V$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,G_=(e,t)=>{for(var n in t||(t={}))j$.call(t,n)&&q_(e,n,t[n]);if(X_)for(var n of X_(t))Y$.call(t,n)&&q_(e,n,t[n]);return e};It({name:"UseVirtualList",props:["list","options","height"],setup(e,{slots:t}){const{list:n}=bm(e),{list:i,containerProps:r,wrapperProps:o}=YD(n,e.options);return typeof r.style=="object"&&!Array.isArray(r.style)&&(r.style.height=e.height||"300px"),()=>Ye("div",G_({},r),[Ye("div",G_({},o.value),i.value.map(l=>Ye("div",{style:{overFlow:"hidden",height:l.height}},t.default?t.default(l):"Please set content!")))])}});It({name:"UseWindowFocus",setup(e,{slots:t}){const n=Ct({focused:GD()});return()=>{if(t.default)return t.default(n)}}});It({name:"UseWindowSize",props:["initialWidth","initialHeight"],setup(e,{slots:t}){const n=Ct(JD(e));return()=>{if(t.default)return t.default(n)}}});const K$={__name:"json-editor",props:{doc:Object,readOnly:Boolean},setup(e,{expose:t}){const n=e,i=R("");var r=R(null);fo(()=>{Mt(n.doc,l=>{o(l)},{immediate:!0})});function o(l){i.value=JSON.stringify(l,null,4),console.log("set value",l,i.value)}return t(o),(l,u)=>(St(),Ft("div",{ref_key:"wrapper",ref:r,class:"jsonEditorWrapper"},[Q("pre",null,[Q("code",null,ne(i.value),1)])],512))}},X$=ui(K$,[["__scopeId","data-v-d3cb383f"]]),q$={__name:"ErrorDetail",props:{errors:Object},setup(e){const t=e,n={required:"\u8BE5\u53C2\u6570\u4E3A\u5FC5\u987B\u4E0A\u4F20\u53C2\u6570\uFF0C\u4F46\u672A\u63D0\u4F9B",nullable:"\u8BE5\u53C2\u6570\u4E0D\u80FD\u4E3ANull"},i=Fa(()=>Object.keys(t.errors).filter(r=>!!n[r]).map(r=>n[r]));return(r,o)=>(St(),Vn(Jm,{"label-width":150,columns:2},{default:xe(()=>[Vt(ts,{label:"\u53C2\u6570\u540D\u79F0"},{default:xe(()=>[Mi(ne(e.errors.Name),1)]),_:1}),Vt(ts,{label:"\u53C2\u6570\u4F4D\u7F6E"},{default:xe(()=>[Mi(ne(e.errors.In),1)]),_:1}),(St(!0),Ft(de,null,ji(Yt(i),(l,u)=>(St(),Vn(ts,{label:"\u9519\u8BEF"+(u+1),key:u,columns:2,class:"danger"},{default:xe(()=>[Mi(ne(l),1)]),_:2},1032,["label"]))),128))]),_:1}))}};var h0={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(mr,function(){var n=1e3,i=6e4,r=36e5,o="millisecond",l="second",u="minute",c="hour",h="day",d="week",g="month",_="quarter",m="year",x="date",b="Invalid Date",O=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,L={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(ut){var rt=["th","st","nd","rd"],K=ut%100;return"["+ut+(rt[(K-20)%10]||rt[K]||rt[0])+"]"}},A=function(ut,rt,K){var st=String(ut);return!st||st.length>=rt?ut:""+Array(rt+1-st.length).join(K)+ut},k={s:A,z:function(ut){var rt=-ut.utcOffset(),K=Math.abs(rt),st=Math.floor(K/60),E=K%60;return(rt<=0?"+":"-")+A(st,2,"0")+":"+A(E,2,"0")},m:function ut(rt,K){if(rt.date()<K.date())return-ut(K,rt);var st=12*(K.year()-rt.year())+(K.month()-rt.month()),E=rt.clone().add(st,g),B=K-E<0,Z=rt.clone().add(st+(B?-1:1),g);return+(-(st+(K-E)/(B?E-Z:Z-E))||0)},a:function(ut){return ut<0?Math.ceil(ut)||0:Math.floor(ut)},p:function(ut){return{M:g,y:m,w:d,d:h,D:x,h:c,m:u,s:l,ms:o,Q:_}[ut]||String(ut||"").toLowerCase().replace(/s$/,"")},u:function(ut){return ut===void 0}},$="en",U={};U[$]=L;var F=function(ut){return ut instanceof dt},N=function ut(rt,K,st){var E;if(!rt)return $;if(typeof rt=="string"){var B=rt.toLowerCase();U[B]&&(E=B),K&&(U[B]=K,E=B);var Z=rt.split("-");if(!E&&Z.length>1)return ut(Z[0])}else{var at=rt.name;U[at]=rt,E=at}return!st&&E&&($=E),E||!st&&$},J=function(ut,rt){if(F(ut))return ut.clone();var K=typeof rt=="object"?rt:{};return K.date=ut,K.args=arguments,new dt(K)},it=k;it.l=N,it.i=F,it.w=function(ut,rt){return J(ut,{locale:rt.$L,utc:rt.$u,x:rt.$x,$offset:rt.$offset})};var dt=function(){function ut(K){this.$L=N(K.locale,null,!0),this.parse(K)}var rt=ut.prototype;return rt.parse=function(K){this.$d=function(st){var E=st.date,B=st.utc;if(E===null)return new Date(NaN);if(it.u(E))return new Date;if(E instanceof Date)return new Date(E);if(typeof E=="string"&&!/Z$/i.test(E)){var Z=E.match(O);if(Z){var at=Z[2]-1||0,ht=(Z[7]||"0").substring(0,3);return B?new Date(Date.UTC(Z[1],at,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,ht)):new Date(Z[1],at,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,ht)}}return new Date(E)}(K),this.$x=K.x||{},this.init()},rt.init=function(){var K=this.$d;this.$y=K.getFullYear(),this.$M=K.getMonth(),this.$D=K.getDate(),this.$W=K.getDay(),this.$H=K.getHours(),this.$m=K.getMinutes(),this.$s=K.getSeconds(),this.$ms=K.getMilliseconds()},rt.$utils=function(){return it},rt.isValid=function(){return this.$d.toString()!==b},rt.isSame=function(K,st){var E=J(K);return this.startOf(st)<=E&&E<=this.endOf(st)},rt.isAfter=function(K,st){return J(K)<this.startOf(st)},rt.isBefore=function(K,st){return this.endOf(st)<J(K)},rt.$g=function(K,st,E){return it.u(K)?this[st]:this.set(E,K)},rt.unix=function(){return Math.floor(this.valueOf()/1e3)},rt.valueOf=function(){return this.$d.getTime()},rt.startOf=function(K,st){var E=this,B=!!it.u(st)||st,Z=it.p(K),at=function(Re,te){var ze=it.w(E.$u?Date.UTC(E.$y,te,Re):new Date(E.$y,te,Re),E);return B?ze:ze.endOf(h)},ht=function(Re,te){return it.w(E.toDate()[Re].apply(E.toDate("s"),(B?[0,0,0,0]:[23,59,59,999]).slice(te)),E)},mt=this.$W,jt=this.$M,pe=this.$D,oe="set"+(this.$u?"UTC":"");switch(Z){case m:return B?at(1,0):at(31,11);case g:return B?at(1,jt):at(0,jt+1);case d:var re=this.$locale().weekStart||0,nn=(mt<re?mt+7:mt)-re;return at(B?pe-nn:pe+(6-nn),jt);case h:case x:return ht(oe+"Hours",0);case c:return ht(oe+"Minutes",1);case u:return ht(oe+"Seconds",2);case l:return ht(oe+"Milliseconds",3);default:return this.clone()}},rt.endOf=function(K){return this.startOf(K,!1)},rt.$set=function(K,st){var E,B=it.p(K),Z="set"+(this.$u?"UTC":""),at=(E={},E[h]=Z+"Date",E[x]=Z+"Date",E[g]=Z+"Month",E[m]=Z+"FullYear",E[c]=Z+"Hours",E[u]=Z+"Minutes",E[l]=Z+"Seconds",E[o]=Z+"Milliseconds",E)[B],ht=B===h?this.$D+(st-this.$W):st;if(B===g||B===m){var mt=this.clone().set(x,1);mt.$d[at](ht),mt.init(),this.$d=mt.set(x,Math.min(this.$D,mt.daysInMonth())).$d}else at&&this.$d[at](ht);return this.init(),this},rt.set=function(K,st){return this.clone().$set(K,st)},rt.get=function(K){return this[it.p(K)]()},rt.add=function(K,st){var E,B=this;K=Number(K);var Z=it.p(st),at=function(jt){var pe=J(B);return it.w(pe.date(pe.date()+Math.round(jt*K)),B)};if(Z===g)return this.set(g,this.$M+K);if(Z===m)return this.set(m,this.$y+K);if(Z===h)return at(1);if(Z===d)return at(7);var ht=(E={},E[u]=i,E[c]=r,E[l]=n,E)[Z]||1,mt=this.$d.getTime()+K*ht;return it.w(mt,this)},rt.subtract=function(K,st){return this.add(-1*K,st)},rt.format=function(K){var st=this,E=this.$locale();if(!this.isValid())return E.invalidDate||b;var B=K||"YYYY-MM-DDTHH:mm:ssZ",Z=it.z(this),at=this.$H,ht=this.$m,mt=this.$M,jt=E.weekdays,pe=E.months,oe=function(te,ze,rn,P){return te&&(te[ze]||te(st,B))||rn[ze].slice(0,P)},re=function(te){return it.s(at%12||12,te,"0")},nn=E.meridiem||function(te,ze,rn){var P=te<12?"AM":"PM";return rn?P.toLowerCase():P},Re={YY:String(this.$y).slice(-2),YYYY:this.$y,M:mt+1,MM:it.s(mt+1,2,"0"),MMM:oe(E.monthsShort,mt,pe,3),MMMM:oe(pe,mt),D:this.$D,DD:it.s(this.$D,2,"0"),d:String(this.$W),dd:oe(E.weekdaysMin,this.$W,jt,2),ddd:oe(E.weekdaysShort,this.$W,jt,3),dddd:jt[this.$W],H:String(at),HH:it.s(at,2,"0"),h:re(1),hh:re(2),a:nn(at,ht,!0),A:nn(at,ht,!1),m:String(ht),mm:it.s(ht,2,"0"),s:String(this.$s),ss:it.s(this.$s,2,"0"),SSS:it.s(this.$ms,3,"0"),Z};return B.replace(C,function(te,ze){return ze||Re[te]||Z.replace(":","")})},rt.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},rt.diff=function(K,st,E){var B,Z=it.p(st),at=J(K),ht=(at.utcOffset()-this.utcOffset())*i,mt=this-at,jt=it.m(this,at);return jt=(B={},B[m]=jt/12,B[g]=jt,B[_]=jt/3,B[d]=(mt-ht)/6048e5,B[h]=(mt-ht)/864e5,B[c]=mt/r,B[u]=mt/i,B[l]=mt/n,B)[Z]||mt,E?jt:it.a(jt)},rt.daysInMonth=function(){return this.endOf(g).$D},rt.$locale=function(){return U[this.$L]},rt.locale=function(K,st){if(!K)return this.$L;var E=this.clone(),B=N(K,st,!0);return B&&(E.$L=B),E},rt.clone=function(){return it.w(this.$d,this)},rt.toDate=function(){return new Date(this.valueOf())},rt.toJSON=function(){return this.isValid()?this.toISOString():null},rt.toISOString=function(){return this.$d.toISOString()},rt.toString=function(){return this.$d.toUTCString()},ut}(),Pt=dt.prototype;return J.prototype=Pt,[["$ms",o],["$s",l],["$m",u],["$H",c],["$W",h],["$M",g],["$y",m],["$D",x]].forEach(function(ut){Pt[ut[1]]=function(rt){return this.$g(rt,ut[0],ut[1])}}),J.extend=function(ut,rt){return ut.$i||(ut(rt,dt,J),ut.$i=!0),J},J.locale=N,J.isDayjs=F,J.unix=function(ut){return J(1e3*ut)},J.en=U[$],J.Ls=U,J.p={},J})})(h0);const G$=h0.exports;const J$=e=>(Cm("data-v-fb724dc6"),e=e(),Am(),e),Z$={style:{"overflow-y":"hidden"}},Q$={class:"table-wrapper"},tR=J$(()=>Q("thead",null,[Q("tr",null,[Q("th",null,"Client"),Q("th",null,"URL"),Q("th",null,"\u8C03\u7528\u65B9\u6CD5"),Q("th",null,"\u8C03\u7528\u65F6\u95F4"),Q("th",null,"\u72B6\u6001\u7801"),Q("th",null,"\u9519\u8BEF\u7C7B\u578B"),Q("th",null,"\u53C2\u6570\u9519\u8BEF")])],-1)),eR=["onClick"],nR=["onClick"],iR={key:0},rR=["onClick"],sR={key:1},oR={key:0,class:"detail"},aR={colspan:"6"},lR={class:"flex end mr-1 footer"},uR={__name:"RecordTable",props:{records:Array,currentPage:Number,countPerPage:Number,total:Number},emits:"goto",setup(e,{emit:t}){const n=e,i=R({}),r={1e4:"\u5408\u6CD5\u8BBF\u95EE",10001:"\u5BF9\u5E38\u89C1\u672A\u5B9A\u4E49URL\u7684\u8BBF\u95EE\uFF08\u641C\u7D22\u5F15\u64CE\u7B49\uFF09",10002:"\u5BF9\u672A\u5B9A\u4E49\u9759\u6001\u6587\u4EF6\u7684\u8BBF\u95EE",10003:"\u5BF9\u672A\u5B9A\u4E49URL\u7684\u8BBF\u95EE",10004:"URL\u6B63\u786E\u4F46\u8C03\u7528\u65B9\u6CD5\u4E0D\u6B63\u786E",10005:"\u672A\u63D0\u4EA4\u8981\u6C42\u63D0\u4EA4\u7684\u53C2\u6570",10006:"\u63D0\u4EA4\u4E86\u672A\u8981\u6C42\u63D0\u4EA4\u7684\u53C2\u6570",10007:"\u53C2\u6570\u6EE5\u7528",9999:"\u5176\u4ED6\u672A\u77E5\u9519\u8BEF"};Mt(()=>n.records,g=>{i.value={}});function o(g){t("selectClient",g)}function l(g){t("goto",g)}function u(g){return Object.keys(g).length}function c(g){return G$(g).format("YYYY-MM-DD HH:mm:ss")}function h(g){t("selectRecord",g)}function d(g){t("change-page-size",g)}return(g,_)=>(St(),Ft("div",Z$,[Q("div",Q$,[Q("table",null,[tR,Q("tbody",null,[(St(!0),Ft(de,null,ji(e.records,(m,x)=>(St(),Ft(de,{key:x},[Q("tr",null,[Q("td",null,[Q("a",{href:"javascript:void(0);",onClick:b=>o(m.c),class:"ip"},ne(m.c),9,eR)]),Q("td",{class:"url-td",onClick:b=>h(m)},ne(m.u),9,nR),Q("td",null,ne(m.m),1),Q("td",null,ne(c(m.t)),1),Q("td",null,ne(m.s),1),Q("td",null,ne(r[m.e]),1),m.pe?(St(),Ft("td",iR,[Q("a",{href:"javascript:void(0);",class:"danger",onClick:b=>i.value[x]=!i.value[x]},ne(u(m.pe))+"\u4E2A\u53C2\u6570\u6709\u9519",9,rR)])):(St(),Ft("td",sR,"\u65E0"))]),i.value[x]?(St(),Ft("tr",oR,[Q("td",aR,[(St(!0),Ft(de,null,ji(m.pe,(b,O)=>(St(),Vn(q$,{errors:b,key:O},null,8,["errors"]))),128))])])):Pr("",!0)],64))),128))])])]),Q("div",lR,[Vt(Zm,{total:e.total,onGoto:l,current:e.currentPage,onChangePageSize:d,"page-size":e.countPerPage},null,8,["total","current","page-size"])])]))}},cR=ui(uR,[["__scopeId","data-v-fb724dc6"]]),fR=Q("option",{value:""},"\u8FC7\u6EE4\u8C03\u7528\u65B9\u6CD5",-1),hR=Q("option",{value:"GET"},"GET",-1),dR=Q("option",{value:"POST"},"POST",-1),pR=Q("option",{value:"PUT"},"PUT",-1),gR=Q("option",{value:"PATCH"},"PATCH",-1),_R=Q("option",{value:"DELETE"},"DELETE",-1),mR=Q("option",{value:"HEAD"},"HEAD",-1),vR=Q("option",{value:"OPTION"},"OPTION",-1),bR=Q("option",{value:"TRACE"},"TRACE",-1),yR=[fR,hR,dR,pR,gR,_R,mR,vR,bR],xR=Q("option",{value:""},"\u8FC7\u6EE4\u72B6\u6001\u7801",-1),wR=Q("option",{value:"200"},"200",-1),OR=Q("option",{value:"400"},"400",-1),SR=Q("option",{value:"404"},"404",-1),PR=Q("option",{value:"2XX"},"2XX",-1),MR=Q("option",{value:"3XX"},"3XX",-1),CR=Q("option",{value:"4XX"},"4XX",-1),AR=[xR,wR,OR,SR,PR,MR,CR],TR=Q("option",{value:""},"\u8FC7\u6EE4\u9519\u8BEF\u7C7B\u578B",-1),ER=Q("option",{value:"10000"},"\u5408\u6CD5\u8BBF\u95EE",-1),IR=Q("option",{value:"10001"},"\u5BF9\u5E38\u89C1\u672A\u5B9A\u4E49URL\u7684\u8BBF\u95EE\uFF08\u641C\u7D22\u5F15\u64CE\u7B49\uFF09",-1),DR=Q("option",{value:"10002"},"\u5BF9\u672A\u5B9A\u4E49\u9759\u6001\u6587\u4EF6\u7684\u8BBF\u95EE",-1),LR=Q("option",{value:"10003"},"\u5BF9\u672A\u5B9A\u4E49URL\u7684\u8BBF\u95EE",-1),$R=Q("option",{value:"10004"},"URL\u6B63\u786E\u4F46\u8C03\u7528\u65B9\u6CD5\u4E0D\u6B63\u786E",-1),RR=Q("option",{value:"10005"},"\u672A\u63D0\u4EA4\u8981\u6C42\u63D0\u4EA4\u7684\u53C2\u6570",-1),kR=Q("option",{value:"10006"},"\u63D0\u4EA4\u4E86\u672A\u8981\u6C42\u63D0\u4EA4\u7684\u53C2\u6570",-1),FR=Q("option",{value:"10007"},"\u53C2\u6570\u6EE5\u7528",-1),BR=Q("option",{value:"9999"},"\u5176\u4ED6\u672A\u77E5\u9519\u8BEF",-1),HR=[TR,ER,IR,DR,LR,$R,RR,kR,FR,BR],zR=["disabled"],J_={__name:"RecordPanel",props:{label:String,records:Array,filter:{type:Object,default:{method:"",status_code:"",error_type:""}}},emits:["select-client","select-record","set-filter"],setup(e,{emit:t}){const n=e,i=At(()=>n.records.slice((o.value-1)*r.value,o.value*r.value)),r=R(50),o=R(1),l=At(()=>n.filter.method==""&&n.filter.status_code==""&&n.filter.error_type=="");function u(m){o.value=m}function c(m){t("select-client",m)}function h(m){t("select-record",m)}function d(m){r.value=m}function g(m){t("set-filter",n.filter)}function _(){t("set-filter",{method:"",status_code:"",error_type:""})}return(m,x)=>(St(),Vn(pc,{label:e.label,"overflow-hidden":""},{toolbar:xe(()=>[Qr(Q("select",{name:"count_per_page",id:"",onChange:g,"onUpdate:modelValue":x[0]||(x[0]=b=>e.filter.method=b),class:"button"},yR,544),[[ju,e.filter.method]]),Qr(Q("select",{name:"status_code_filter",id:"",onChange:g,style:{"margin-left":"10px"},"onUpdate:modelValue":x[1]||(x[1]=b=>e.filter.status_code=b),class:"button"},AR,544),[[ju,e.filter.status_code]]),Qr(Q("select",{name:"error_type_filter",id:"",onChange:g,style:{"margin-left":"10px"},"onUpdate:modelValue":x[2]||(x[2]=b=>e.filter.error_type=b),class:"button"},HR,544),[[ju,e.filter.error_type]]),Q("button",{variant:"primary",style:{"margin-left":"10px"},disabled:Yt(l),onClick:_},"\u53D6\u6D88",8,zR)]),default:xe(()=>[Vt(cR,{records:Yt(i),total:e.records.length,"current-page":o.value,onChangePageSize:d,"count-per-page":r.value,onGoto:u,onSelectClient:c,onSelectRecord:h},null,8,["records","total","current-page","count-per-page"])]),_:1},8,["label"]))}};const NR={class:"dialog"},WR={class:"header"},UR={class:"body"},VR={__name:"dialog",props:{header:String,modelValue:Boolean},emits:["update:modelValue","confirm"],setup(e,{emit:t}){const n=R(null),i=yl();function r(u){u.target==n.value&&o()}function o(){t("update:modelValue",!1)}function l(){t("confirm"),o()}return(u,c)=>e.modelValue?(St(),Ft("div",{key:0,class:"wrapper",onClick:r,ref_key:"wrapper",ref:n},[Q("div",NR,[Q("div",WR,[Yt(i).header?oi(u.$slots,"header",{key:0},void 0,!0):Pr("",!0),Q("span",null,ne(e.header),1)]),Q("div",UR,[oi(u.$slots,"default",{},void 0,!0)]),Q("div",{class:"footer"},[Q("button",{variant:"danger",onClick:o},"\u53D6\u6D88"),Q("button",{variant:"success",onClick:l},"\u786E\u5B9A")])])],512)):Pr("",!0)}},jR=ui(VR,[["__scopeId","data-v-038452b1"]]),YR={class:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},KR=Q("path",{d:"M768 896H256c-72.533 0-128-55.467-128-128V256c0-72.533 55.467-128 128-128h512c72.533 0 128 55.467 128 128v512c0 72.533-55.467 128-128 128zM256 213.333c-25.6 0-42.667 17.067-42.667 42.667v512c0 25.6 17.067 42.667 42.667 42.667h512c25.6 0 42.667-17.067 42.667-42.667V256c0-25.6-17.067-42.667-42.667-42.667H256z",fill:"#0970ff"},null,-1),XR=Q("path",{d:"M853.333 469.333H170.667c-25.6 0-42.667-17.066-42.667-42.666S145.067 384 170.667 384h682.666c25.6 0 42.667 17.067 42.667 42.667s-17.067 42.666-42.667 42.666z",fill:"#0970ff"},null,-1),qR=Q("path",{d:"M426.667 896c-25.6 0-42.667-17.067-42.667-42.667V170.667c0-25.6 17.067-42.667 42.667-42.667s42.666 17.067 42.666 42.667v682.666c0 25.6-17.066 42.667-42.666 42.667z",fill:"#0970ff"},null,-1),GR=[KR,XR,qR];function JR(e,t){return St(),Ft("svg",YR,GR)}const ZR={render:JR},QR={class:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},tk=Q("path",{d:"M863.1 518.5H505.5V160.9c0-4.4-3.6-8-8-8h-26c-53.9 0-106.3 10.6-155.5 31.4-47.5 20.1-90.3 48.9-127 85.6-36.7 36.7-65.5 79.4-85.6 127C82.6 446.2 72 498.5 72 552.5S82.6 658.7 103.4 708c20.1 47.5 48.9 90.3 85.6 127 36.7 36.7 79.4 65.5 127 85.6 49.3 20.9 101.7 31.5 155.6 31.5 53.9 0 106.3-10.6 155.5-31.4 47.5-20.1 90.3-48.9 127-85.6 36.7-36.7 65.5-79.4 85.6-127 20.9-49.3 31.5-101.7 31.5-155.6v-26c-.1-4.4-3.7-8-8.1-8z",fill:"#0970ff"},null,-1),ek=Q("path",{d:"m951 463-2.6-28.2c-8.5-92-49.3-178.8-115.1-244.3-65.7-65.7-152.6-106.4-244.9-114.9L560.1 73c-4.7-.4-8.7 3.2-8.7 7.9v383.7c0 4.4 3.6 8 8 8l383.6-1c4.7-.1 8.4-4 8-8.6z",fill:"#0970ff"},null,-1),nk=[tk,ek];function ik(e,t){return St(),Ft("svg",QR,nk)}const rk={render:ik},sk={class:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},ok=Q("path",{d:"M807.6 167.9c-5.8-5.1-13-7.5-20.1-7.4-1.6-.2-3.3-.5-5-.5H133c-16 0-29 13-29 29.1 0 7.9 3.2 15 8.2 20.3l226.4 254.4v289.9c0 13.3 9 24.6 21.2 28l180.8 79.8c3.8 1.7 7.8 2.4 11.8 2.4 11.2 0 21.8-6.4 26.7-17.3 1.9-4.4 2.7-8.9 2.4-13.2V465.7L810.1 209c10.6-12 9.5-30.4-2.5-41.1z",fill:"#fff"},null,-1),ak=Q("path",{d:"M646.8 532.1c0 16.1 13 29.1 29.1 29.1h215c16.1 0 29.1-13 29.1-29.1S907 503 890.9 503h-215c-16 0-29.1 12.9-29.1 29.1zm244.1 107.8h-215c-16.1 0-29.1 13-29.1 29.1s13 29.1 29.1 29.1h215c16.1 0 29.1-13 29.1-29.1 0-16-13-29.1-29.1-29.1zm0 137.1h-215c-16.1 0-29.1 13-29.1 29.1s13 29.1 29.1 29.1h215c16.1 0 29.1-13 29.1-29.1S907 777 890.9 777z",fill:"#fff"},null,-1),lk=[ok,ak];function uk(e,t){return St(),Ft("svg",sk,lk)}const ck={render:uk};var Z_={exports:{}};/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */(function(e,t){(function(){var n,i="4.17.21",r=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="Invalid ` + "`" + `variable` + "`" + ` option passed into ` + "`" + `_.template` + "`" + `",c="__lodash_hash_undefined__",h=500,d="__lodash_placeholder__",g=1,_=2,m=4,x=1,b=2,O=1,C=2,L=4,A=8,k=16,$=32,U=64,F=128,N=256,J=512,it=30,dt="...",Pt=800,ut=16,rt=1,K=2,st=3,E=1/0,B=9007199254740991,Z=17976931348623157e292,at=0/0,ht=4294967295,mt=ht-1,jt=ht>>>1,pe=[["ary",F],["bind",O],["bindKey",C],["curry",A],["curryRight",k],["flip",J],["partial",$],["partialRight",U],["rearg",N]],oe="[object Arguments]",re="[object Array]",nn="[object AsyncFunction]",Re="[object Boolean]",te="[object Date]",ze="[object DOMException]",rn="[object Error]",P="[object Function]",T="[object GeneratorFunction]",z="[object Map]",Y="[object Number]",q="[object Null]",tt="[object Object]",ot="[object Promise]",nt="[object Proxy]",et="[object RegExp]",X="[object Set]",gt="[object String]",ft="[object Symbol]",_t="[object Undefined]",xt="[object WeakMap]",Bt="[object WeakSet]",qt="[object ArrayBuffer]",Nt="[object DataView]",ge="[object Float32Array]",qe="[object Float64Array]",qn="[object Int8Array]",Er="[object Int16Array]",fi="[object Int32Array]",Ir="[object Uint8Array]",ke="[object Uint8ClampedArray]",sn="[object Uint16Array]",Dr="[object Uint32Array]",p0=/\b__p \+= '';/g,g0=/\b(__p \+=) '' \+/g,_0=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bf=/&(?:amp|lt|gt|quot|#39);/g,yf=/[&<>"']/g,m0=RegExp(bf.source),v0=RegExp(yf.source),b0=/<%-([\s\S]+?)%>/g,y0=/<%([\s\S]+?)%>/g,xf=/<%=([\s\S]+?)%>/g,x0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,w0=/^\w*$/,O0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ml=/[\\^$.*+?()[\]{}|]/g,S0=RegExp(Ml.source),Cl=/^\s+/,P0=/\s/,M0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,C0=/\{\n\/\* \[wrapped with (.+)\] \*/,A0=/,? & /,T0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,E0=/[()=,{}\[\]\/\s]/,I0=/\\(\\)?/g,D0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,wf=/\w*$/,L0=/^[-+]0x[0-9a-f]+$/i,$0=/^0b[01]+$/i,R0=/^\[object .+?Constructor\]$/,k0=/^0o[0-7]+$/i,F0=/^(?:0|[1-9]\d*)$/,B0=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_o=/($^)/,H0=/['\n\r\u2028\u2029\\]/g,mo="\\ud800-\\udfff",z0="\\u0300-\\u036f",N0="\\ufe20-\\ufe2f",W0="\\u20d0-\\u20ff",Of=z0+N0+W0,Sf="\\u2700-\\u27bf",Pf="a-z\\xdf-\\xf6\\xf8-\\xff",U0="\\xac\\xb1\\xd7\\xf7",V0="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",j0="\\u2000-\\u206f",Y0=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Mf="A-Z\\xc0-\\xd6\\xd8-\\xde",Cf="\\ufe0e\\ufe0f",Af=U0+V0+j0+Y0,Al="['\u2019]",K0="["+mo+"]",Tf="["+Af+"]",vo="["+Of+"]",Ef="\\d+",X0="["+Sf+"]",If="["+Pf+"]",Df="[^"+mo+Af+Ef+Sf+Pf+Mf+"]",Tl="\\ud83c[\\udffb-\\udfff]",q0="(?:"+vo+"|"+Tl+")",Lf="[^"+mo+"]",El="(?:\\ud83c[\\udde6-\\uddff]){2}",Il="[\\ud800-\\udbff][\\udc00-\\udfff]",Lr="["+Mf+"]",$f="\\u200d",Rf="(?:"+If+"|"+Df+")",G0="(?:"+Lr+"|"+Df+")",kf="(?:"+Al+"(?:d|ll|m|re|s|t|ve))?",Ff="(?:"+Al+"(?:D|LL|M|RE|S|T|VE))?",Bf=q0+"?",Hf="["+Cf+"]?",J0="(?:"+$f+"(?:"+[Lf,El,Il].join("|")+")"+Hf+Bf+")*",Z0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Q0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",zf=Hf+Bf+J0,tb="(?:"+[X0,El,Il].join("|")+")"+zf,eb="(?:"+[Lf+vo+"?",vo,El,Il,K0].join("|")+")",nb=RegExp(Al,"g"),ib=RegExp(vo,"g"),Dl=RegExp(Tl+"(?="+Tl+")|"+eb+zf,"g"),rb=RegExp([Lr+"?"+If+"+"+kf+"(?="+[Tf,Lr,"$"].join("|")+")",G0+"+"+Ff+"(?="+[Tf,Lr+Rf,"$"].join("|")+")",Lr+"?"+Rf+"+"+kf,Lr+"+"+Ff,Q0,Z0,Ef,tb].join("|"),"g"),sb=RegExp("["+$f+mo+Of+Cf+"]"),ob=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ab=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],lb=-1,fe={};fe[ge]=fe[qe]=fe[qn]=fe[Er]=fe[fi]=fe[Ir]=fe[ke]=fe[sn]=fe[Dr]=!0,fe[oe]=fe[re]=fe[qt]=fe[Re]=fe[Nt]=fe[te]=fe[rn]=fe[P]=fe[z]=fe[Y]=fe[tt]=fe[et]=fe[X]=fe[gt]=fe[xt]=!1;var ae={};ae[oe]=ae[re]=ae[qt]=ae[Nt]=ae[Re]=ae[te]=ae[ge]=ae[qe]=ae[qn]=ae[Er]=ae[fi]=ae[z]=ae[Y]=ae[tt]=ae[et]=ae[X]=ae[gt]=ae[ft]=ae[Ir]=ae[ke]=ae[sn]=ae[Dr]=!0,ae[rn]=ae[P]=ae[xt]=!1;var ub={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},cb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},fb={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},hb={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},db=parseFloat,pb=parseInt,Nf=typeof mr=="object"&&mr&&mr.Object===Object&&mr,gb=typeof self=="object"&&self&&self.Object===Object&&self,Fe=Nf||gb||Function("return this")(),Ll=t&&!t.nodeType&&t,Ji=Ll&&!0&&e&&!e.nodeType&&e,Wf=Ji&&Ji.exports===Ll,$l=Wf&&Nf.process,Pn=function(){try{var I=Ji&&Ji.require&&Ji.require("util").types;return I||$l&&$l.binding&&$l.binding("util")}catch{}}(),Uf=Pn&&Pn.isArrayBuffer,Vf=Pn&&Pn.isDate,jf=Pn&&Pn.isMap,Yf=Pn&&Pn.isRegExp,Kf=Pn&&Pn.isSet,Xf=Pn&&Pn.isTypedArray;function pn(I,W,H){switch(H.length){case 0:return I.call(W);case 1:return I.call(W,H[0]);case 2:return I.call(W,H[0],H[1]);case 3:return I.call(W,H[0],H[1],H[2])}return I.apply(W,H)}function _b(I,W,H,ct){for(var Tt=-1,Jt=I==null?0:I.length;++Tt<Jt;){var Te=I[Tt];W(ct,Te,H(Te),I)}return ct}function Mn(I,W){for(var H=-1,ct=I==null?0:I.length;++H<ct&&W(I[H],H,I)!==!1;);return I}function mb(I,W){for(var H=I==null?0:I.length;H--&&W(I[H],H,I)!==!1;);return I}function qf(I,W){for(var H=-1,ct=I==null?0:I.length;++H<ct;)if(!W(I[H],H,I))return!1;return!0}function Ti(I,W){for(var H=-1,ct=I==null?0:I.length,Tt=0,Jt=[];++H<ct;){var Te=I[H];W(Te,H,I)&&(Jt[Tt++]=Te)}return Jt}function bo(I,W){var H=I==null?0:I.length;return!!H&&$r(I,W,0)>-1}function Rl(I,W,H){for(var ct=-1,Tt=I==null?0:I.length;++ct<Tt;)if(H(W,I[ct]))return!0;return!1}function _e(I,W){for(var H=-1,ct=I==null?0:I.length,Tt=Array(ct);++H<ct;)Tt[H]=W(I[H],H,I);return Tt}function Ei(I,W){for(var H=-1,ct=W.length,Tt=I.length;++H<ct;)I[Tt+H]=W[H];return I}function kl(I,W,H,ct){var Tt=-1,Jt=I==null?0:I.length;for(ct&&Jt&&(H=I[++Tt]);++Tt<Jt;)H=W(H,I[Tt],Tt,I);return H}function vb(I,W,H,ct){var Tt=I==null?0:I.length;for(ct&&Tt&&(H=I[--Tt]);Tt--;)H=W(H,I[Tt],Tt,I);return H}function Fl(I,W){for(var H=-1,ct=I==null?0:I.length;++H<ct;)if(W(I[H],H,I))return!0;return!1}var bb=Bl("length");function yb(I){return I.split("")}function xb(I){return I.match(T0)||[]}function Gf(I,W,H){var ct;return H(I,function(Tt,Jt,Te){if(W(Tt,Jt,Te))return ct=Jt,!1}),ct}function yo(I,W,H,ct){for(var Tt=I.length,Jt=H+(ct?1:-1);ct?Jt--:++Jt<Tt;)if(W(I[Jt],Jt,I))return Jt;return-1}function $r(I,W,H){return W===W?Lb(I,W,H):yo(I,Jf,H)}function wb(I,W,H,ct){for(var Tt=H-1,Jt=I.length;++Tt<Jt;)if(ct(I[Tt],W))return Tt;return-1}function Jf(I){return I!==I}function Zf(I,W){var H=I==null?0:I.length;return H?zl(I,W)/H:at}function Bl(I){return function(W){return W==null?n:W[I]}}function Hl(I){return function(W){return I==null?n:I[W]}}function Qf(I,W,H,ct,Tt){return Tt(I,function(Jt,Te,se){H=ct?(ct=!1,Jt):W(H,Jt,Te,se)}),H}function Ob(I,W){var H=I.length;for(I.sort(W);H--;)I[H]=I[H].value;return I}function zl(I,W){for(var H,ct=-1,Tt=I.length;++ct<Tt;){var Jt=W(I[ct]);Jt!==n&&(H=H===n?Jt:H+Jt)}return H}function Nl(I,W){for(var H=-1,ct=Array(I);++H<I;)ct[H]=W(H);return ct}function Sb(I,W){return _e(W,function(H){return[H,I[H]]})}function th(I){return I&&I.slice(0,rh(I)+1).replace(Cl,"")}function gn(I){return function(W){return I(W)}}function Wl(I,W){return _e(W,function(H){return I[H]})}function gs(I,W){return I.has(W)}function eh(I,W){for(var H=-1,ct=I.length;++H<ct&&$r(W,I[H],0)>-1;);return H}function nh(I,W){for(var H=I.length;H--&&$r(W,I[H],0)>-1;);return H}function Pb(I,W){for(var H=I.length,ct=0;H--;)I[H]===W&&++ct;return ct}var Mb=Hl(ub),Cb=Hl(cb);function Ab(I){return"\\"+hb[I]}function Tb(I,W){return I==null?n:I[W]}function Rr(I){return sb.test(I)}function Eb(I){return ob.test(I)}function Ib(I){for(var W,H=[];!(W=I.next()).done;)H.push(W.value);return H}function Ul(I){var W=-1,H=Array(I.size);return I.forEach(function(ct,Tt){H[++W]=[Tt,ct]}),H}function ih(I,W){return function(H){return I(W(H))}}function Ii(I,W){for(var H=-1,ct=I.length,Tt=0,Jt=[];++H<ct;){var Te=I[H];(Te===W||Te===d)&&(I[H]=d,Jt[Tt++]=H)}return Jt}function xo(I){var W=-1,H=Array(I.size);return I.forEach(function(ct){H[++W]=ct}),H}function Db(I){var W=-1,H=Array(I.size);return I.forEach(function(ct){H[++W]=[ct,ct]}),H}function Lb(I,W,H){for(var ct=H-1,Tt=I.length;++ct<Tt;)if(I[ct]===W)return ct;return-1}function $b(I,W,H){for(var ct=H+1;ct--;)if(I[ct]===W)return ct;return ct}function kr(I){return Rr(I)?kb(I):bb(I)}function Hn(I){return Rr(I)?Fb(I):yb(I)}function rh(I){for(var W=I.length;W--&&P0.test(I.charAt(W)););return W}var Rb=Hl(fb);function kb(I){for(var W=Dl.lastIndex=0;Dl.test(I);)++W;return W}function Fb(I){return I.match(Dl)||[]}function Bb(I){return I.match(rb)||[]}var Hb=function I(W){W=W==null?Fe:Fr.defaults(Fe.Object(),W,Fr.pick(Fe,ab));var H=W.Array,ct=W.Date,Tt=W.Error,Jt=W.Function,Te=W.Math,se=W.Object,Vl=W.RegExp,zb=W.String,Cn=W.TypeError,wo=H.prototype,Nb=Jt.prototype,Br=se.prototype,Oo=W["__core-js_shared__"],So=Nb.toString,ee=Br.hasOwnProperty,Wb=0,sh=function(){var s=/[^.]+$/.exec(Oo&&Oo.keys&&Oo.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Po=Br.toString,Ub=So.call(se),Vb=Fe._,jb=Vl("^"+So.call(ee).replace(Ml,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Mo=Wf?W.Buffer:n,Di=W.Symbol,Co=W.Uint8Array,oh=Mo?Mo.allocUnsafe:n,Ao=ih(se.getPrototypeOf,se),ah=se.create,lh=Br.propertyIsEnumerable,To=wo.splice,uh=Di?Di.isConcatSpreadable:n,_s=Di?Di.iterator:n,Zi=Di?Di.toStringTag:n,Eo=function(){try{var s=ir(se,"defineProperty");return s({},"",{}),s}catch{}}(),Yb=W.clearTimeout!==Fe.clearTimeout&&W.clearTimeout,Kb=ct&&ct.now!==Fe.Date.now&&ct.now,Xb=W.setTimeout!==Fe.setTimeout&&W.setTimeout,Io=Te.ceil,Do=Te.floor,jl=se.getOwnPropertySymbols,qb=Mo?Mo.isBuffer:n,ch=W.isFinite,Gb=wo.join,Jb=ih(se.keys,se),Ee=Te.max,Ne=Te.min,Zb=ct.now,Qb=W.parseInt,fh=Te.random,ty=wo.reverse,Yl=ir(W,"DataView"),ms=ir(W,"Map"),Kl=ir(W,"Promise"),Hr=ir(W,"Set"),vs=ir(W,"WeakMap"),bs=ir(se,"create"),Lo=vs&&new vs,zr={},ey=rr(Yl),ny=rr(ms),iy=rr(Kl),ry=rr(Hr),sy=rr(vs),$o=Di?Di.prototype:n,ys=$o?$o.valueOf:n,hh=$o?$o.toString:n;function y(s){if(ye(s)&&!Et(s)&&!(s instanceof zt)){if(s instanceof An)return s;if(ee.call(s,"__wrapped__"))return dd(s)}return new An(s)}var Nr=function(){function s(){}return function(a){if(!ve(a))return{};if(ah)return ah(a);s.prototype=a;var f=new s;return s.prototype=n,f}}();function Ro(){}function An(s,a){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=n}y.templateSettings={escape:b0,evaluate:y0,interpolate:xf,variable:"",imports:{_:y}},y.prototype=Ro.prototype,y.prototype.constructor=y,An.prototype=Nr(Ro.prototype),An.prototype.constructor=An;function zt(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ht,this.__views__=[]}function oy(){var s=new zt(this.__wrapped__);return s.__actions__=on(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=on(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=on(this.__views__),s}function ay(){if(this.__filtered__){var s=new zt(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function ly(){var s=this.__wrapped__.value(),a=this.__dir__,f=Et(s),p=a<0,v=f?s.length:0,w=y1(0,v,this.__views__),S=w.start,M=w.end,D=M-S,V=p?M:S-1,j=this.__iteratees__,G=j.length,lt=0,pt=Ne(D,this.__takeCount__);if(!f||!p&&v==D&&pt==D)return kh(s,this.__actions__);var wt=[];t:for(;D--&&lt<pt;){V+=a;for(var Lt=-1,Ot=s[V];++Lt<G;){var Ht=j[Lt],Wt=Ht.iteratee,vn=Ht.type,Ze=Wt(Ot);if(vn==K)Ot=Ze;else if(!Ze){if(vn==rt)continue t;break t}}wt[lt++]=Ot}return wt}zt.prototype=Nr(Ro.prototype),zt.prototype.constructor=zt;function Qi(s){var a=-1,f=s==null?0:s.length;for(this.clear();++a<f;){var p=s[a];this.set(p[0],p[1])}}function uy(){this.__data__=bs?bs(null):{},this.size=0}function cy(s){var a=this.has(s)&&delete this.__data__[s];return this.size-=a?1:0,a}function fy(s){var a=this.__data__;if(bs){var f=a[s];return f===c?n:f}return ee.call(a,s)?a[s]:n}function hy(s){var a=this.__data__;return bs?a[s]!==n:ee.call(a,s)}function dy(s,a){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=bs&&a===n?c:a,this}Qi.prototype.clear=uy,Qi.prototype.delete=cy,Qi.prototype.get=fy,Qi.prototype.has=hy,Qi.prototype.set=dy;function hi(s){var a=-1,f=s==null?0:s.length;for(this.clear();++a<f;){var p=s[a];this.set(p[0],p[1])}}function py(){this.__data__=[],this.size=0}function gy(s){var a=this.__data__,f=ko(a,s);if(f<0)return!1;var p=a.length-1;return f==p?a.pop():To.call(a,f,1),--this.size,!0}function _y(s){var a=this.__data__,f=ko(a,s);return f<0?n:a[f][1]}function my(s){return ko(this.__data__,s)>-1}function vy(s,a){var f=this.__data__,p=ko(f,s);return p<0?(++this.size,f.push([s,a])):f[p][1]=a,this}hi.prototype.clear=py,hi.prototype.delete=gy,hi.prototype.get=_y,hi.prototype.has=my,hi.prototype.set=vy;function di(s){var a=-1,f=s==null?0:s.length;for(this.clear();++a<f;){var p=s[a];this.set(p[0],p[1])}}function by(){this.size=0,this.__data__={hash:new Qi,map:new(ms||hi),string:new Qi}}function yy(s){var a=Xo(this,s).delete(s);return this.size-=a?1:0,a}function xy(s){return Xo(this,s).get(s)}function wy(s){return Xo(this,s).has(s)}function Oy(s,a){var f=Xo(this,s),p=f.size;return f.set(s,a),this.size+=f.size==p?0:1,this}di.prototype.clear=by,di.prototype.delete=yy,di.prototype.get=xy,di.prototype.has=wy,di.prototype.set=Oy;function tr(s){var a=-1,f=s==null?0:s.length;for(this.__data__=new di;++a<f;)this.add(s[a])}function Sy(s){return this.__data__.set(s,c),this}function Py(s){return this.__data__.has(s)}tr.prototype.add=tr.prototype.push=Sy,tr.prototype.has=Py;function zn(s){var a=this.__data__=new hi(s);this.size=a.size}function My(){this.__data__=new hi,this.size=0}function Cy(s){var a=this.__data__,f=a.delete(s);return this.size=a.size,f}function Ay(s){return this.__data__.get(s)}function Ty(s){return this.__data__.has(s)}function Ey(s,a){var f=this.__data__;if(f instanceof hi){var p=f.__data__;if(!ms||p.length<r-1)return p.push([s,a]),this.size=++f.size,this;f=this.__data__=new di(p)}return f.set(s,a),this.size=f.size,this}zn.prototype.clear=My,zn.prototype.delete=Cy,zn.prototype.get=Ay,zn.prototype.has=Ty,zn.prototype.set=Ey;function dh(s,a){var f=Et(s),p=!f&&sr(s),v=!f&&!p&&Fi(s),w=!f&&!p&&!v&&jr(s),S=f||p||v||w,M=S?Nl(s.length,zb):[],D=M.length;for(var V in s)(a||ee.call(s,V))&&!(S&&(V=="length"||v&&(V=="offset"||V=="parent")||w&&(V=="buffer"||V=="byteLength"||V=="byteOffset")||mi(V,D)))&&M.push(V);return M}function ph(s){var a=s.length;return a?s[ru(0,a-1)]:n}function Iy(s,a){return qo(on(s),er(a,0,s.length))}function Dy(s){return qo(on(s))}function Xl(s,a,f){(f!==n&&!Nn(s[a],f)||f===n&&!(a in s))&&pi(s,a,f)}function xs(s,a,f){var p=s[a];(!(ee.call(s,a)&&Nn(p,f))||f===n&&!(a in s))&&pi(s,a,f)}function ko(s,a){for(var f=s.length;f--;)if(Nn(s[f][0],a))return f;return-1}function Ly(s,a,f,p){return Li(s,function(v,w,S){a(p,v,f(v),S)}),p}function gh(s,a){return s&&Jn(a,Le(a),s)}function $y(s,a){return s&&Jn(a,ln(a),s)}function pi(s,a,f){a=="__proto__"&&Eo?Eo(s,a,{configurable:!0,enumerable:!0,value:f,writable:!0}):s[a]=f}function ql(s,a){for(var f=-1,p=a.length,v=H(p),w=s==null;++f<p;)v[f]=w?n:Tu(s,a[f]);return v}function er(s,a,f){return s===s&&(f!==n&&(s=s<=f?s:f),a!==n&&(s=s>=a?s:a)),s}function Tn(s,a,f,p,v,w){var S,M=a&g,D=a&_,V=a&m;if(f&&(S=v?f(s,p,v,w):f(s)),S!==n)return S;if(!ve(s))return s;var j=Et(s);if(j){if(S=w1(s),!M)return on(s,S)}else{var G=We(s),lt=G==P||G==T;if(Fi(s))return Hh(s,M);if(G==tt||G==oe||lt&&!v){if(S=D||lt?{}:rd(s),!M)return D?f1(s,$y(S,s)):c1(s,gh(S,s))}else{if(!ae[G])return v?s:{};S=O1(s,G,M)}}w||(w=new zn);var pt=w.get(s);if(pt)return pt;w.set(s,S),Ld(s)?s.forEach(function(Ot){S.add(Tn(Ot,a,f,Ot,s,w))}):Id(s)&&s.forEach(function(Ot,Ht){S.set(Ht,Tn(Ot,a,f,Ht,s,w))});var wt=V?D?gu:pu:D?ln:Le,Lt=j?n:wt(s);return Mn(Lt||s,function(Ot,Ht){Lt&&(Ht=Ot,Ot=s[Ht]),xs(S,Ht,Tn(Ot,a,f,Ht,s,w))}),S}function Ry(s){var a=Le(s);return function(f){return _h(f,s,a)}}function _h(s,a,f){var p=f.length;if(s==null)return!p;for(s=se(s);p--;){var v=f[p],w=a[v],S=s[v];if(S===n&&!(v in s)||!w(S))return!1}return!0}function mh(s,a,f){if(typeof s!="function")throw new Cn(l);return As(function(){s.apply(n,f)},a)}function ws(s,a,f,p){var v=-1,w=bo,S=!0,M=s.length,D=[],V=a.length;if(!M)return D;f&&(a=_e(a,gn(f))),p?(w=Rl,S=!1):a.length>=r&&(w=gs,S=!1,a=new tr(a));t:for(;++v<M;){var j=s[v],G=f==null?j:f(j);if(j=p||j!==0?j:0,S&&G===G){for(var lt=V;lt--;)if(a[lt]===G)continue t;D.push(j)}else w(a,G,p)||D.push(j)}return D}var Li=Vh(Gn),vh=Vh(Jl,!0);function ky(s,a){var f=!0;return Li(s,function(p,v,w){return f=!!a(p,v,w),f}),f}function Fo(s,a,f){for(var p=-1,v=s.length;++p<v;){var w=s[p],S=a(w);if(S!=null&&(M===n?S===S&&!mn(S):f(S,M)))var M=S,D=w}return D}function Fy(s,a,f,p){var v=s.length;for(f=Dt(f),f<0&&(f=-f>v?0:v+f),p=p===n||p>v?v:Dt(p),p<0&&(p+=v),p=f>p?0:Rd(p);f<p;)s[f++]=a;return s}function bh(s,a){var f=[];return Li(s,function(p,v,w){a(p,v,w)&&f.push(p)}),f}function Be(s,a,f,p,v){var w=-1,S=s.length;for(f||(f=P1),v||(v=[]);++w<S;){var M=s[w];a>0&&f(M)?a>1?Be(M,a-1,f,p,v):Ei(v,M):p||(v[v.length]=M)}return v}var Gl=jh(),yh=jh(!0);function Gn(s,a){return s&&Gl(s,a,Le)}function Jl(s,a){return s&&yh(s,a,Le)}function Bo(s,a){return Ti(a,function(f){return vi(s[f])})}function nr(s,a){a=Ri(a,s);for(var f=0,p=a.length;s!=null&&f<p;)s=s[Zn(a[f++])];return f&&f==p?s:n}function xh(s,a,f){var p=a(s);return Et(s)?p:Ei(p,f(s))}function Ge(s){return s==null?s===n?_t:q:Zi&&Zi in se(s)?b1(s):D1(s)}function Zl(s,a){return s>a}function By(s,a){return s!=null&&ee.call(s,a)}function Hy(s,a){return s!=null&&a in se(s)}function zy(s,a,f){return s>=Ne(a,f)&&s<Ee(a,f)}function Ql(s,a,f){for(var p=f?Rl:bo,v=s[0].length,w=s.length,S=w,M=H(w),D=1/0,V=[];S--;){var j=s[S];S&&a&&(j=_e(j,gn(a))),D=Ne(j.length,D),M[S]=!f&&(a||v>=120&&j.length>=120)?new tr(S&&j):n}j=s[0];var G=-1,lt=M[0];t:for(;++G<v&&V.length<D;){var pt=j[G],wt=a?a(pt):pt;if(pt=f||pt!==0?pt:0,!(lt?gs(lt,wt):p(V,wt,f))){for(S=w;--S;){var Lt=M[S];if(!(Lt?gs(Lt,wt):p(s[S],wt,f)))continue t}lt&&lt.push(wt),V.push(pt)}}return V}function Ny(s,a,f,p){return Gn(s,function(v,w,S){a(p,f(v),w,S)}),p}function Os(s,a,f){a=Ri(a,s),s=ld(s,a);var p=s==null?s:s[Zn(In(a))];return p==null?n:pn(p,s,f)}function wh(s){return ye(s)&&Ge(s)==oe}function Wy(s){return ye(s)&&Ge(s)==qt}function Uy(s){return ye(s)&&Ge(s)==te}function Ss(s,a,f,p,v){return s===a?!0:s==null||a==null||!ye(s)&&!ye(a)?s!==s&&a!==a:Vy(s,a,f,p,Ss,v)}function Vy(s,a,f,p,v,w){var S=Et(s),M=Et(a),D=S?re:We(s),V=M?re:We(a);D=D==oe?tt:D,V=V==oe?tt:V;var j=D==tt,G=V==tt,lt=D==V;if(lt&&Fi(s)){if(!Fi(a))return!1;S=!0,j=!1}if(lt&&!j)return w||(w=new zn),S||jr(s)?ed(s,a,f,p,v,w):m1(s,a,D,f,p,v,w);if(!(f&x)){var pt=j&&ee.call(s,"__wrapped__"),wt=G&&ee.call(a,"__wrapped__");if(pt||wt){var Lt=pt?s.value():s,Ot=wt?a.value():a;return w||(w=new zn),v(Lt,Ot,f,p,w)}}return lt?(w||(w=new zn),v1(s,a,f,p,v,w)):!1}function jy(s){return ye(s)&&We(s)==z}function tu(s,a,f,p){var v=f.length,w=v,S=!p;if(s==null)return!w;for(s=se(s);v--;){var M=f[v];if(S&&M[2]?M[1]!==s[M[0]]:!(M[0]in s))return!1}for(;++v<w;){M=f[v];var D=M[0],V=s[D],j=M[1];if(S&&M[2]){if(V===n&&!(D in s))return!1}else{var G=new zn;if(p)var lt=p(V,j,D,s,a,G);if(!(lt===n?Ss(j,V,x|b,p,G):lt))return!1}}return!0}function Oh(s){if(!ve(s)||C1(s))return!1;var a=vi(s)?jb:R0;return a.test(rr(s))}function Yy(s){return ye(s)&&Ge(s)==et}function Ky(s){return ye(s)&&We(s)==X}function Xy(s){return ye(s)&&ea(s.length)&&!!fe[Ge(s)]}function Sh(s){return typeof s=="function"?s:s==null?un:typeof s=="object"?Et(s)?Ch(s[0],s[1]):Mh(s):Yd(s)}function eu(s){if(!Cs(s))return Jb(s);var a=[];for(var f in se(s))ee.call(s,f)&&f!="constructor"&&a.push(f);return a}function qy(s){if(!ve(s))return I1(s);var a=Cs(s),f=[];for(var p in s)p=="constructor"&&(a||!ee.call(s,p))||f.push(p);return f}function nu(s,a){return s<a}function Ph(s,a){var f=-1,p=an(s)?H(s.length):[];return Li(s,function(v,w,S){p[++f]=a(v,w,S)}),p}function Mh(s){var a=mu(s);return a.length==1&&a[0][2]?od(a[0][0],a[0][1]):function(f){return f===s||tu(f,s,a)}}function Ch(s,a){return bu(s)&&sd(a)?od(Zn(s),a):function(f){var p=Tu(f,s);return p===n&&p===a?Eu(f,s):Ss(a,p,x|b)}}function Ho(s,a,f,p,v){s!==a&&Gl(a,function(w,S){if(v||(v=new zn),ve(w))Gy(s,a,S,f,Ho,p,v);else{var M=p?p(xu(s,S),w,S+"",s,a,v):n;M===n&&(M=w),Xl(s,S,M)}},ln)}function Gy(s,a,f,p,v,w,S){var M=xu(s,f),D=xu(a,f),V=S.get(D);if(V){Xl(s,f,V);return}var j=w?w(M,D,f+"",s,a,S):n,G=j===n;if(G){var lt=Et(D),pt=!lt&&Fi(D),wt=!lt&&!pt&&jr(D);j=D,lt||pt||wt?Et(M)?j=M:Pe(M)?j=on(M):pt?(G=!1,j=Hh(D,!0)):wt?(G=!1,j=zh(D,!0)):j=[]:Ts(D)||sr(D)?(j=M,sr(M)?j=kd(M):(!ve(M)||vi(M))&&(j=rd(D))):G=!1}G&&(S.set(D,j),v(j,D,p,w,S),S.delete(D)),Xl(s,f,j)}function Ah(s,a){var f=s.length;if(!!f)return a+=a<0?f:0,mi(a,f)?s[a]:n}function Th(s,a,f){a.length?a=_e(a,function(w){return Et(w)?function(S){return nr(S,w.length===1?w[0]:w)}:w}):a=[un];var p=-1;a=_e(a,gn(bt()));var v=Ph(s,function(w,S,M){var D=_e(a,function(V){return V(w)});return{criteria:D,index:++p,value:w}});return Ob(v,function(w,S){return u1(w,S,f)})}function Jy(s,a){return Eh(s,a,function(f,p){return Eu(s,p)})}function Eh(s,a,f){for(var p=-1,v=a.length,w={};++p<v;){var S=a[p],M=nr(s,S);f(M,S)&&Ps(w,Ri(S,s),M)}return w}function Zy(s){return function(a){return nr(a,s)}}function iu(s,a,f,p){var v=p?wb:$r,w=-1,S=a.length,M=s;for(s===a&&(a=on(a)),f&&(M=_e(s,gn(f)));++w<S;)for(var D=0,V=a[w],j=f?f(V):V;(D=v(M,j,D,p))>-1;)M!==s&&To.call(M,D,1),To.call(s,D,1);return s}function Ih(s,a){for(var f=s?a.length:0,p=f-1;f--;){var v=a[f];if(f==p||v!==w){var w=v;mi(v)?To.call(s,v,1):au(s,v)}}return s}function ru(s,a){return s+Do(fh()*(a-s+1))}function Qy(s,a,f,p){for(var v=-1,w=Ee(Io((a-s)/(f||1)),0),S=H(w);w--;)S[p?w:++v]=s,s+=f;return S}function su(s,a){var f="";if(!s||a<1||a>B)return f;do a%2&&(f+=s),a=Do(a/2),a&&(s+=s);while(a);return f}function Rt(s,a){return wu(ad(s,a,un),s+"")}function t1(s){return ph(Yr(s))}function e1(s,a){var f=Yr(s);return qo(f,er(a,0,f.length))}function Ps(s,a,f,p){if(!ve(s))return s;a=Ri(a,s);for(var v=-1,w=a.length,S=w-1,M=s;M!=null&&++v<w;){var D=Zn(a[v]),V=f;if(D==="__proto__"||D==="constructor"||D==="prototype")return s;if(v!=S){var j=M[D];V=p?p(j,D,M):n,V===n&&(V=ve(j)?j:mi(a[v+1])?[]:{})}xs(M,D,V),M=M[D]}return s}var Dh=Lo?function(s,a){return Lo.set(s,a),s}:un,n1=Eo?function(s,a){return Eo(s,"toString",{configurable:!0,enumerable:!1,value:Du(a),writable:!0})}:un;function i1(s){return qo(Yr(s))}function En(s,a,f){var p=-1,v=s.length;a<0&&(a=-a>v?0:v+a),f=f>v?v:f,f<0&&(f+=v),v=a>f?0:f-a>>>0,a>>>=0;for(var w=H(v);++p<v;)w[p]=s[p+a];return w}function r1(s,a){var f;return Li(s,function(p,v,w){return f=a(p,v,w),!f}),!!f}function zo(s,a,f){var p=0,v=s==null?p:s.length;if(typeof a=="number"&&a===a&&v<=jt){for(;p<v;){var w=p+v>>>1,S=s[w];S!==null&&!mn(S)&&(f?S<=a:S<a)?p=w+1:v=w}return v}return ou(s,a,un,f)}function ou(s,a,f,p){var v=0,w=s==null?0:s.length;if(w===0)return 0;a=f(a);for(var S=a!==a,M=a===null,D=mn(a),V=a===n;v<w;){var j=Do((v+w)/2),G=f(s[j]),lt=G!==n,pt=G===null,wt=G===G,Lt=mn(G);if(S)var Ot=p||wt;else V?Ot=wt&&(p||lt):M?Ot=wt&&lt&&(p||!pt):D?Ot=wt&&lt&&!pt&&(p||!Lt):pt||Lt?Ot=!1:Ot=p?G<=a:G<a;Ot?v=j+1:w=j}return Ne(w,mt)}function Lh(s,a){for(var f=-1,p=s.length,v=0,w=[];++f<p;){var S=s[f],M=a?a(S):S;if(!f||!Nn(M,D)){var D=M;w[v++]=S===0?0:S}}return w}function $h(s){return typeof s=="number"?s:mn(s)?at:+s}function _n(s){if(typeof s=="string")return s;if(Et(s))return _e(s,_n)+"";if(mn(s))return hh?hh.call(s):"";var a=s+"";return a=="0"&&1/s==-E?"-0":a}function $i(s,a,f){var p=-1,v=bo,w=s.length,S=!0,M=[],D=M;if(f)S=!1,v=Rl;else if(w>=r){var V=a?null:g1(s);if(V)return xo(V);S=!1,v=gs,D=new tr}else D=a?[]:M;t:for(;++p<w;){var j=s[p],G=a?a(j):j;if(j=f||j!==0?j:0,S&&G===G){for(var lt=D.length;lt--;)if(D[lt]===G)continue t;a&&D.push(G),M.push(j)}else v(D,G,f)||(D!==M&&D.push(G),M.push(j))}return M}function au(s,a){return a=Ri(a,s),s=ld(s,a),s==null||delete s[Zn(In(a))]}function Rh(s,a,f,p){return Ps(s,a,f(nr(s,a)),p)}function No(s,a,f,p){for(var v=s.length,w=p?v:-1;(p?w--:++w<v)&&a(s[w],w,s););return f?En(s,p?0:w,p?w+1:v):En(s,p?w+1:0,p?v:w)}function kh(s,a){var f=s;return f instanceof zt&&(f=f.value()),kl(a,function(p,v){return v.func.apply(v.thisArg,Ei([p],v.args))},f)}function lu(s,a,f){var p=s.length;if(p<2)return p?$i(s[0]):[];for(var v=-1,w=H(p);++v<p;)for(var S=s[v],M=-1;++M<p;)M!=v&&(w[v]=ws(w[v]||S,s[M],a,f));return $i(Be(w,1),a,f)}function Fh(s,a,f){for(var p=-1,v=s.length,w=a.length,S={};++p<v;){var M=p<w?a[p]:n;f(S,s[p],M)}return S}function uu(s){return Pe(s)?s:[]}function cu(s){return typeof s=="function"?s:un}function Ri(s,a){return Et(s)?s:bu(s,a)?[s]:hd(Qt(s))}var s1=Rt;function ki(s,a,f){var p=s.length;return f=f===n?p:f,!a&&f>=p?s:En(s,a,f)}var Bh=Yb||function(s){return Fe.clearTimeout(s)};function Hh(s,a){if(a)return s.slice();var f=s.length,p=oh?oh(f):new s.constructor(f);return s.copy(p),p}function fu(s){var a=new s.constructor(s.byteLength);return new Co(a).set(new Co(s)),a}function o1(s,a){var f=a?fu(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function a1(s){var a=new s.constructor(s.source,wf.exec(s));return a.lastIndex=s.lastIndex,a}function l1(s){return ys?se(ys.call(s)):{}}function zh(s,a){var f=a?fu(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function Nh(s,a){if(s!==a){var f=s!==n,p=s===null,v=s===s,w=mn(s),S=a!==n,M=a===null,D=a===a,V=mn(a);if(!M&&!V&&!w&&s>a||w&&S&&D&&!M&&!V||p&&S&&D||!f&&D||!v)return 1;if(!p&&!w&&!V&&s<a||V&&f&&v&&!p&&!w||M&&f&&v||!S&&v||!D)return-1}return 0}function u1(s,a,f){for(var p=-1,v=s.criteria,w=a.criteria,S=v.length,M=f.length;++p<S;){var D=Nh(v[p],w[p]);if(D){if(p>=M)return D;var V=f[p];return D*(V=="desc"?-1:1)}}return s.index-a.index}function Wh(s,a,f,p){for(var v=-1,w=s.length,S=f.length,M=-1,D=a.length,V=Ee(w-S,0),j=H(D+V),G=!p;++M<D;)j[M]=a[M];for(;++v<S;)(G||v<w)&&(j[f[v]]=s[v]);for(;V--;)j[M++]=s[v++];return j}function Uh(s,a,f,p){for(var v=-1,w=s.length,S=-1,M=f.length,D=-1,V=a.length,j=Ee(w-M,0),G=H(j+V),lt=!p;++v<j;)G[v]=s[v];for(var pt=v;++D<V;)G[pt+D]=a[D];for(;++S<M;)(lt||v<w)&&(G[pt+f[S]]=s[v++]);return G}function on(s,a){var f=-1,p=s.length;for(a||(a=H(p));++f<p;)a[f]=s[f];return a}function Jn(s,a,f,p){var v=!f;f||(f={});for(var w=-1,S=a.length;++w<S;){var M=a[w],D=p?p(f[M],s[M],M,f,s):n;D===n&&(D=s[M]),v?pi(f,M,D):xs(f,M,D)}return f}function c1(s,a){return Jn(s,vu(s),a)}function f1(s,a){return Jn(s,nd(s),a)}function Wo(s,a){return function(f,p){var v=Et(f)?_b:Ly,w=a?a():{};return v(f,s,bt(p,2),w)}}function Wr(s){return Rt(function(a,f){var p=-1,v=f.length,w=v>1?f[v-1]:n,S=v>2?f[2]:n;for(w=s.length>3&&typeof w=="function"?(v--,w):n,S&&Je(f[0],f[1],S)&&(w=v<3?n:w,v=1),a=se(a);++p<v;){var M=f[p];M&&s(a,M,p,w)}return a})}function Vh(s,a){return function(f,p){if(f==null)return f;if(!an(f))return s(f,p);for(var v=f.length,w=a?v:-1,S=se(f);(a?w--:++w<v)&&p(S[w],w,S)!==!1;);return f}}function jh(s){return function(a,f,p){for(var v=-1,w=se(a),S=p(a),M=S.length;M--;){var D=S[s?M:++v];if(f(w[D],D,w)===!1)break}return a}}function h1(s,a,f){var p=a&O,v=Ms(s);function w(){var S=this&&this!==Fe&&this instanceof w?v:s;return S.apply(p?f:this,arguments)}return w}function Yh(s){return function(a){a=Qt(a);var f=Rr(a)?Hn(a):n,p=f?f[0]:a.charAt(0),v=f?ki(f,1).join(""):a.slice(1);return p[s]()+v}}function Ur(s){return function(a){return kl(Vd(Ud(a).replace(nb,"")),s,"")}}function Ms(s){return function(){var a=arguments;switch(a.length){case 0:return new s;case 1:return new s(a[0]);case 2:return new s(a[0],a[1]);case 3:return new s(a[0],a[1],a[2]);case 4:return new s(a[0],a[1],a[2],a[3]);case 5:return new s(a[0],a[1],a[2],a[3],a[4]);case 6:return new s(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new s(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var f=Nr(s.prototype),p=s.apply(f,a);return ve(p)?p:f}}function d1(s,a,f){var p=Ms(s);function v(){for(var w=arguments.length,S=H(w),M=w,D=Vr(v);M--;)S[M]=arguments[M];var V=w<3&&S[0]!==D&&S[w-1]!==D?[]:Ii(S,D);if(w-=V.length,w<f)return Jh(s,a,Uo,v.placeholder,n,S,V,n,n,f-w);var j=this&&this!==Fe&&this instanceof v?p:s;return pn(j,this,S)}return v}function Kh(s){return function(a,f,p){var v=se(a);if(!an(a)){var w=bt(f,3);a=Le(a),f=function(M){return w(v[M],M,v)}}var S=s(a,f,p);return S>-1?v[w?a[S]:S]:n}}function Xh(s){return _i(function(a){var f=a.length,p=f,v=An.prototype.thru;for(s&&a.reverse();p--;){var w=a[p];if(typeof w!="function")throw new Cn(l);if(v&&!S&&Ko(w)=="wrapper")var S=new An([],!0)}for(p=S?p:f;++p<f;){w=a[p];var M=Ko(w),D=M=="wrapper"?_u(w):n;D&&yu(D[0])&&D[1]==(F|A|$|N)&&!D[4].length&&D[9]==1?S=S[Ko(D[0])].apply(S,D[3]):S=w.length==1&&yu(w)?S[M]():S.thru(w)}return function(){var V=arguments,j=V[0];if(S&&V.length==1&&Et(j))return S.plant(j).value();for(var G=0,lt=f?a[G].apply(this,V):j;++G<f;)lt=a[G].call(this,lt);return lt}})}function Uo(s,a,f,p,v,w,S,M,D,V){var j=a&F,G=a&O,lt=a&C,pt=a&(A|k),wt=a&J,Lt=lt?n:Ms(s);function Ot(){for(var Ht=arguments.length,Wt=H(Ht),vn=Ht;vn--;)Wt[vn]=arguments[vn];if(pt)var Ze=Vr(Ot),bn=Pb(Wt,Ze);if(p&&(Wt=Wh(Wt,p,v,pt)),w&&(Wt=Uh(Wt,w,S,pt)),Ht-=bn,pt&&Ht<V){var Me=Ii(Wt,Ze);return Jh(s,a,Uo,Ot.placeholder,f,Wt,Me,M,D,V-Ht)}var Wn=G?f:this,yi=lt?Wn[s]:s;return Ht=Wt.length,M?Wt=L1(Wt,M):wt&&Ht>1&&Wt.reverse(),j&&D<Ht&&(Wt.length=D),this&&this!==Fe&&this instanceof Ot&&(yi=Lt||Ms(yi)),yi.apply(Wn,Wt)}return Ot}function qh(s,a){return function(f,p){return Ny(f,s,a(p),{})}}function Vo(s,a){return function(f,p){var v;if(f===n&&p===n)return a;if(f!==n&&(v=f),p!==n){if(v===n)return p;typeof f=="string"||typeof p=="string"?(f=_n(f),p=_n(p)):(f=$h(f),p=$h(p)),v=s(f,p)}return v}}function hu(s){return _i(function(a){return a=_e(a,gn(bt())),Rt(function(f){var p=this;return s(a,function(v){return pn(v,p,f)})})})}function jo(s,a){a=a===n?" ":_n(a);var f=a.length;if(f<2)return f?su(a,s):a;var p=su(a,Io(s/kr(a)));return Rr(a)?ki(Hn(p),0,s).join(""):p.slice(0,s)}function p1(s,a,f,p){var v=a&O,w=Ms(s);function S(){for(var M=-1,D=arguments.length,V=-1,j=p.length,G=H(j+D),lt=this&&this!==Fe&&this instanceof S?w:s;++V<j;)G[V]=p[V];for(;D--;)G[V++]=arguments[++M];return pn(lt,v?f:this,G)}return S}function Gh(s){return function(a,f,p){return p&&typeof p!="number"&&Je(a,f,p)&&(f=p=n),a=bi(a),f===n?(f=a,a=0):f=bi(f),p=p===n?a<f?1:-1:bi(p),Qy(a,f,p,s)}}function Yo(s){return function(a,f){return typeof a=="string"&&typeof f=="string"||(a=Dn(a),f=Dn(f)),s(a,f)}}function Jh(s,a,f,p,v,w,S,M,D,V){var j=a&A,G=j?S:n,lt=j?n:S,pt=j?w:n,wt=j?n:w;a|=j?$:U,a&=~(j?U:$),a&L||(a&=~(O|C));var Lt=[s,a,v,pt,G,wt,lt,M,D,V],Ot=f.apply(n,Lt);return yu(s)&&ud(Ot,Lt),Ot.placeholder=p,cd(Ot,s,a)}function du(s){var a=Te[s];return function(f,p){if(f=Dn(f),p=p==null?0:Ne(Dt(p),292),p&&ch(f)){var v=(Qt(f)+"e").split("e"),w=a(v[0]+"e"+(+v[1]+p));return v=(Qt(w)+"e").split("e"),+(v[0]+"e"+(+v[1]-p))}return a(f)}}var g1=Hr&&1/xo(new Hr([,-0]))[1]==E?function(s){return new Hr(s)}:Ru;function Zh(s){return function(a){var f=We(a);return f==z?Ul(a):f==X?Db(a):Sb(a,s(a))}}function gi(s,a,f,p,v,w,S,M){var D=a&C;if(!D&&typeof s!="function")throw new Cn(l);var V=p?p.length:0;if(V||(a&=~($|U),p=v=n),S=S===n?S:Ee(Dt(S),0),M=M===n?M:Dt(M),V-=v?v.length:0,a&U){var j=p,G=v;p=v=n}var lt=D?n:_u(s),pt=[s,a,f,p,v,j,G,w,S,M];if(lt&&E1(pt,lt),s=pt[0],a=pt[1],f=pt[2],p=pt[3],v=pt[4],M=pt[9]=pt[9]===n?D?0:s.length:Ee(pt[9]-V,0),!M&&a&(A|k)&&(a&=~(A|k)),!a||a==O)var wt=h1(s,a,f);else a==A||a==k?wt=d1(s,a,M):(a==$||a==(O|$))&&!v.length?wt=p1(s,a,f,p):wt=Uo.apply(n,pt);var Lt=lt?Dh:ud;return cd(Lt(wt,pt),s,a)}function Qh(s,a,f,p){return s===n||Nn(s,Br[f])&&!ee.call(p,f)?a:s}function td(s,a,f,p,v,w){return ve(s)&&ve(a)&&(w.set(a,s),Ho(s,a,n,td,w),w.delete(a)),s}function _1(s){return Ts(s)?n:s}function ed(s,a,f,p,v,w){var S=f&x,M=s.length,D=a.length;if(M!=D&&!(S&&D>M))return!1;var V=w.get(s),j=w.get(a);if(V&&j)return V==a&&j==s;var G=-1,lt=!0,pt=f&b?new tr:n;for(w.set(s,a),w.set(a,s);++G<M;){var wt=s[G],Lt=a[G];if(p)var Ot=S?p(Lt,wt,G,a,s,w):p(wt,Lt,G,s,a,w);if(Ot!==n){if(Ot)continue;lt=!1;break}if(pt){if(!Fl(a,function(Ht,Wt){if(!gs(pt,Wt)&&(wt===Ht||v(wt,Ht,f,p,w)))return pt.push(Wt)})){lt=!1;break}}else if(!(wt===Lt||v(wt,Lt,f,p,w))){lt=!1;break}}return w.delete(s),w.delete(a),lt}function m1(s,a,f,p,v,w,S){switch(f){case Nt:if(s.byteLength!=a.byteLength||s.byteOffset!=a.byteOffset)return!1;s=s.buffer,a=a.buffer;case qt:return!(s.byteLength!=a.byteLength||!w(new Co(s),new Co(a)));case Re:case te:case Y:return Nn(+s,+a);case rn:return s.name==a.name&&s.message==a.message;case et:case gt:return s==a+"";case z:var M=Ul;case X:var D=p&x;if(M||(M=xo),s.size!=a.size&&!D)return!1;var V=S.get(s);if(V)return V==a;p|=b,S.set(s,a);var j=ed(M(s),M(a),p,v,w,S);return S.delete(s),j;case ft:if(ys)return ys.call(s)==ys.call(a)}return!1}function v1(s,a,f,p,v,w){var S=f&x,M=pu(s),D=M.length,V=pu(a),j=V.length;if(D!=j&&!S)return!1;for(var G=D;G--;){var lt=M[G];if(!(S?lt in a:ee.call(a,lt)))return!1}var pt=w.get(s),wt=w.get(a);if(pt&&wt)return pt==a&&wt==s;var Lt=!0;w.set(s,a),w.set(a,s);for(var Ot=S;++G<D;){lt=M[G];var Ht=s[lt],Wt=a[lt];if(p)var vn=S?p(Wt,Ht,lt,a,s,w):p(Ht,Wt,lt,s,a,w);if(!(vn===n?Ht===Wt||v(Ht,Wt,f,p,w):vn)){Lt=!1;break}Ot||(Ot=lt=="constructor")}if(Lt&&!Ot){var Ze=s.constructor,bn=a.constructor;Ze!=bn&&"constructor"in s&&"constructor"in a&&!(typeof Ze=="function"&&Ze instanceof Ze&&typeof bn=="function"&&bn instanceof bn)&&(Lt=!1)}return w.delete(s),w.delete(a),Lt}function _i(s){return wu(ad(s,n,_d),s+"")}function pu(s){return xh(s,Le,vu)}function gu(s){return xh(s,ln,nd)}var _u=Lo?function(s){return Lo.get(s)}:Ru;function Ko(s){for(var a=s.name+"",f=zr[a],p=ee.call(zr,a)?f.length:0;p--;){var v=f[p],w=v.func;if(w==null||w==s)return v.name}return a}function Vr(s){var a=ee.call(y,"placeholder")?y:s;return a.placeholder}function bt(){var s=y.iteratee||Lu;return s=s===Lu?Sh:s,arguments.length?s(arguments[0],arguments[1]):s}function Xo(s,a){var f=s.__data__;return M1(a)?f[typeof a=="string"?"string":"hash"]:f.map}function mu(s){for(var a=Le(s),f=a.length;f--;){var p=a[f],v=s[p];a[f]=[p,v,sd(v)]}return a}function ir(s,a){var f=Tb(s,a);return Oh(f)?f:n}function b1(s){var a=ee.call(s,Zi),f=s[Zi];try{s[Zi]=n;var p=!0}catch{}var v=Po.call(s);return p&&(a?s[Zi]=f:delete s[Zi]),v}var vu=jl?function(s){return s==null?[]:(s=se(s),Ti(jl(s),function(a){return lh.call(s,a)}))}:ku,nd=jl?function(s){for(var a=[];s;)Ei(a,vu(s)),s=Ao(s);return a}:ku,We=Ge;(Yl&&We(new Yl(new ArrayBuffer(1)))!=Nt||ms&&We(new ms)!=z||Kl&&We(Kl.resolve())!=ot||Hr&&We(new Hr)!=X||vs&&We(new vs)!=xt)&&(We=function(s){var a=Ge(s),f=a==tt?s.constructor:n,p=f?rr(f):"";if(p)switch(p){case ey:return Nt;case ny:return z;case iy:return ot;case ry:return X;case sy:return xt}return a});function y1(s,a,f){for(var p=-1,v=f.length;++p<v;){var w=f[p],S=w.size;switch(w.type){case"drop":s+=S;break;case"dropRight":a-=S;break;case"take":a=Ne(a,s+S);break;case"takeRight":s=Ee(s,a-S);break}}return{start:s,end:a}}function x1(s){var a=s.match(C0);return a?a[1].split(A0):[]}function id(s,a,f){a=Ri(a,s);for(var p=-1,v=a.length,w=!1;++p<v;){var S=Zn(a[p]);if(!(w=s!=null&&f(s,S)))break;s=s[S]}return w||++p!=v?w:(v=s==null?0:s.length,!!v&&ea(v)&&mi(S,v)&&(Et(s)||sr(s)))}function w1(s){var a=s.length,f=new s.constructor(a);return a&&typeof s[0]=="string"&&ee.call(s,"index")&&(f.index=s.index,f.input=s.input),f}function rd(s){return typeof s.constructor=="function"&&!Cs(s)?Nr(Ao(s)):{}}function O1(s,a,f){var p=s.constructor;switch(a){case qt:return fu(s);case Re:case te:return new p(+s);case Nt:return o1(s,f);case ge:case qe:case qn:case Er:case fi:case Ir:case ke:case sn:case Dr:return zh(s,f);case z:return new p;case Y:case gt:return new p(s);case et:return a1(s);case X:return new p;case ft:return l1(s)}}function S1(s,a){var f=a.length;if(!f)return s;var p=f-1;return a[p]=(f>1?"& ":"")+a[p],a=a.join(f>2?", ":" "),s.replace(M0,` + "`" + `{
/* [wrapped with ` + "`" + `+a+` + "`" + `] */
` + "`" + `)}function P1(s){return Et(s)||sr(s)||!!(uh&&s&&s[uh])}function mi(s,a){var f=typeof s;return a=a==null?B:a,!!a&&(f=="number"||f!="symbol"&&F0.test(s))&&s>-1&&s%1==0&&s<a}function Je(s,a,f){if(!ve(f))return!1;var p=typeof a;return(p=="number"?an(f)&&mi(a,f.length):p=="string"&&a in f)?Nn(f[a],s):!1}function bu(s,a){if(Et(s))return!1;var f=typeof s;return f=="number"||f=="symbol"||f=="boolean"||s==null||mn(s)?!0:w0.test(s)||!x0.test(s)||a!=null&&s in se(a)}function M1(s){var a=typeof s;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?s!=="__proto__":s===null}function yu(s){var a=Ko(s),f=y[a];if(typeof f!="function"||!(a in zt.prototype))return!1;if(s===f)return!0;var p=_u(f);return!!p&&s===p[0]}function C1(s){return!!sh&&sh in s}var A1=Oo?vi:Fu;function Cs(s){var a=s&&s.constructor,f=typeof a=="function"&&a.prototype||Br;return s===f}function sd(s){return s===s&&!ve(s)}function od(s,a){return function(f){return f==null?!1:f[s]===a&&(a!==n||s in se(f))}}function T1(s){var a=Qo(s,function(p){return f.size===h&&f.clear(),p}),f=a.cache;return a}function E1(s,a){var f=s[1],p=a[1],v=f|p,w=v<(O|C|F),S=p==F&&f==A||p==F&&f==N&&s[7].length<=a[8]||p==(F|N)&&a[7].length<=a[8]&&f==A;if(!(w||S))return s;p&O&&(s[2]=a[2],v|=f&O?0:L);var M=a[3];if(M){var D=s[3];s[3]=D?Wh(D,M,a[4]):M,s[4]=D?Ii(s[3],d):a[4]}return M=a[5],M&&(D=s[5],s[5]=D?Uh(D,M,a[6]):M,s[6]=D?Ii(s[5],d):a[6]),M=a[7],M&&(s[7]=M),p&F&&(s[8]=s[8]==null?a[8]:Ne(s[8],a[8])),s[9]==null&&(s[9]=a[9]),s[0]=a[0],s[1]=v,s}function I1(s){var a=[];if(s!=null)for(var f in se(s))a.push(f);return a}function D1(s){return Po.call(s)}function ad(s,a,f){return a=Ee(a===n?s.length-1:a,0),function(){for(var p=arguments,v=-1,w=Ee(p.length-a,0),S=H(w);++v<w;)S[v]=p[a+v];v=-1;for(var M=H(a+1);++v<a;)M[v]=p[v];return M[a]=f(S),pn(s,this,M)}}function ld(s,a){return a.length<2?s:nr(s,En(a,0,-1))}function L1(s,a){for(var f=s.length,p=Ne(a.length,f),v=on(s);p--;){var w=a[p];s[p]=mi(w,f)?v[w]:n}return s}function xu(s,a){if(!(a==="constructor"&&typeof s[a]=="function")&&a!="__proto__")return s[a]}var ud=fd(Dh),As=Xb||function(s,a){return Fe.setTimeout(s,a)},wu=fd(n1);function cd(s,a,f){var p=a+"";return wu(s,S1(p,$1(x1(p),f)))}function fd(s){var a=0,f=0;return function(){var p=Zb(),v=ut-(p-f);if(f=p,v>0){if(++a>=Pt)return arguments[0]}else a=0;return s.apply(n,arguments)}}function qo(s,a){var f=-1,p=s.length,v=p-1;for(a=a===n?p:a;++f<a;){var w=ru(f,v),S=s[w];s[w]=s[f],s[f]=S}return s.length=a,s}var hd=T1(function(s){var a=[];return s.charCodeAt(0)===46&&a.push(""),s.replace(O0,function(f,p,v,w){a.push(v?w.replace(I0,"$1"):p||f)}),a});function Zn(s){if(typeof s=="string"||mn(s))return s;var a=s+"";return a=="0"&&1/s==-E?"-0":a}function rr(s){if(s!=null){try{return So.call(s)}catch{}try{return s+""}catch{}}return""}function $1(s,a){return Mn(pe,function(f){var p="_."+f[0];a&f[1]&&!bo(s,p)&&s.push(p)}),s.sort()}function dd(s){if(s instanceof zt)return s.clone();var a=new An(s.__wrapped__,s.__chain__);return a.__actions__=on(s.__actions__),a.__index__=s.__index__,a.__values__=s.__values__,a}function R1(s,a,f){(f?Je(s,a,f):a===n)?a=1:a=Ee(Dt(a),0);var p=s==null?0:s.length;if(!p||a<1)return[];for(var v=0,w=0,S=H(Io(p/a));v<p;)S[w++]=En(s,v,v+=a);return S}function k1(s){for(var a=-1,f=s==null?0:s.length,p=0,v=[];++a<f;){var w=s[a];w&&(v[p++]=w)}return v}function F1(){var s=arguments.length;if(!s)return[];for(var a=H(s-1),f=arguments[0],p=s;p--;)a[p-1]=arguments[p];return Ei(Et(f)?on(f):[f],Be(a,1))}var B1=Rt(function(s,a){return Pe(s)?ws(s,Be(a,1,Pe,!0)):[]}),H1=Rt(function(s,a){var f=In(a);return Pe(f)&&(f=n),Pe(s)?ws(s,Be(a,1,Pe,!0),bt(f,2)):[]}),z1=Rt(function(s,a){var f=In(a);return Pe(f)&&(f=n),Pe(s)?ws(s,Be(a,1,Pe,!0),n,f):[]});function N1(s,a,f){var p=s==null?0:s.length;return p?(a=f||a===n?1:Dt(a),En(s,a<0?0:a,p)):[]}function W1(s,a,f){var p=s==null?0:s.length;return p?(a=f||a===n?1:Dt(a),a=p-a,En(s,0,a<0?0:a)):[]}function U1(s,a){return s&&s.length?No(s,bt(a,3),!0,!0):[]}function V1(s,a){return s&&s.length?No(s,bt(a,3),!0):[]}function j1(s,a,f,p){var v=s==null?0:s.length;return v?(f&&typeof f!="number"&&Je(s,a,f)&&(f=0,p=v),Fy(s,a,f,p)):[]}function pd(s,a,f){var p=s==null?0:s.length;if(!p)return-1;var v=f==null?0:Dt(f);return v<0&&(v=Ee(p+v,0)),yo(s,bt(a,3),v)}function gd(s,a,f){var p=s==null?0:s.length;if(!p)return-1;var v=p-1;return f!==n&&(v=Dt(f),v=f<0?Ee(p+v,0):Ne(v,p-1)),yo(s,bt(a,3),v,!0)}function _d(s){var a=s==null?0:s.length;return a?Be(s,1):[]}function Y1(s){var a=s==null?0:s.length;return a?Be(s,E):[]}function K1(s,a){var f=s==null?0:s.length;return f?(a=a===n?1:Dt(a),Be(s,a)):[]}function X1(s){for(var a=-1,f=s==null?0:s.length,p={};++a<f;){var v=s[a];p[v[0]]=v[1]}return p}function md(s){return s&&s.length?s[0]:n}function q1(s,a,f){var p=s==null?0:s.length;if(!p)return-1;var v=f==null?0:Dt(f);return v<0&&(v=Ee(p+v,0)),$r(s,a,v)}function G1(s){var a=s==null?0:s.length;return a?En(s,0,-1):[]}var J1=Rt(function(s){var a=_e(s,uu);return a.length&&a[0]===s[0]?Ql(a):[]}),Z1=Rt(function(s){var a=In(s),f=_e(s,uu);return a===In(f)?a=n:f.pop(),f.length&&f[0]===s[0]?Ql(f,bt(a,2)):[]}),Q1=Rt(function(s){var a=In(s),f=_e(s,uu);return a=typeof a=="function"?a:n,a&&f.pop(),f.length&&f[0]===s[0]?Ql(f,n,a):[]});function tx(s,a){return s==null?"":Gb.call(s,a)}function In(s){var a=s==null?0:s.length;return a?s[a-1]:n}function ex(s,a,f){var p=s==null?0:s.length;if(!p)return-1;var v=p;return f!==n&&(v=Dt(f),v=v<0?Ee(p+v,0):Ne(v,p-1)),a===a?$b(s,a,v):yo(s,Jf,v,!0)}function nx(s,a){return s&&s.length?Ah(s,Dt(a)):n}var ix=Rt(vd);function vd(s,a){return s&&s.length&&a&&a.length?iu(s,a):s}function rx(s,a,f){return s&&s.length&&a&&a.length?iu(s,a,bt(f,2)):s}function sx(s,a,f){return s&&s.length&&a&&a.length?iu(s,a,n,f):s}var ox=_i(function(s,a){var f=s==null?0:s.length,p=ql(s,a);return Ih(s,_e(a,function(v){return mi(v,f)?+v:v}).sort(Nh)),p});function ax(s,a){var f=[];if(!(s&&s.length))return f;var p=-1,v=[],w=s.length;for(a=bt(a,3);++p<w;){var S=s[p];a(S,p,s)&&(f.push(S),v.push(p))}return Ih(s,v),f}function Ou(s){return s==null?s:ty.call(s)}function lx(s,a,f){var p=s==null?0:s.length;return p?(f&&typeof f!="number"&&Je(s,a,f)?(a=0,f=p):(a=a==null?0:Dt(a),f=f===n?p:Dt(f)),En(s,a,f)):[]}function ux(s,a){return zo(s,a)}function cx(s,a,f){return ou(s,a,bt(f,2))}function fx(s,a){var f=s==null?0:s.length;if(f){var p=zo(s,a);if(p<f&&Nn(s[p],a))return p}return-1}function hx(s,a){return zo(s,a,!0)}function dx(s,a,f){return ou(s,a,bt(f,2),!0)}function px(s,a){var f=s==null?0:s.length;if(f){var p=zo(s,a,!0)-1;if(Nn(s[p],a))return p}return-1}function gx(s){return s&&s.length?Lh(s):[]}function _x(s,a){return s&&s.length?Lh(s,bt(a,2)):[]}function mx(s){var a=s==null?0:s.length;return a?En(s,1,a):[]}function vx(s,a,f){return s&&s.length?(a=f||a===n?1:Dt(a),En(s,0,a<0?0:a)):[]}function bx(s,a,f){var p=s==null?0:s.length;return p?(a=f||a===n?1:Dt(a),a=p-a,En(s,a<0?0:a,p)):[]}function yx(s,a){return s&&s.length?No(s,bt(a,3),!1,!0):[]}function xx(s,a){return s&&s.length?No(s,bt(a,3)):[]}var wx=Rt(function(s){return $i(Be(s,1,Pe,!0))}),Ox=Rt(function(s){var a=In(s);return Pe(a)&&(a=n),$i(Be(s,1,Pe,!0),bt(a,2))}),Sx=Rt(function(s){var a=In(s);return a=typeof a=="function"?a:n,$i(Be(s,1,Pe,!0),n,a)});function Px(s){return s&&s.length?$i(s):[]}function Mx(s,a){return s&&s.length?$i(s,bt(a,2)):[]}function Cx(s,a){return a=typeof a=="function"?a:n,s&&s.length?$i(s,n,a):[]}function Su(s){if(!(s&&s.length))return[];var a=0;return s=Ti(s,function(f){if(Pe(f))return a=Ee(f.length,a),!0}),Nl(a,function(f){return _e(s,Bl(f))})}function bd(s,a){if(!(s&&s.length))return[];var f=Su(s);return a==null?f:_e(f,function(p){return pn(a,n,p)})}var Ax=Rt(function(s,a){return Pe(s)?ws(s,a):[]}),Tx=Rt(function(s){return lu(Ti(s,Pe))}),Ex=Rt(function(s){var a=In(s);return Pe(a)&&(a=n),lu(Ti(s,Pe),bt(a,2))}),Ix=Rt(function(s){var a=In(s);return a=typeof a=="function"?a:n,lu(Ti(s,Pe),n,a)}),Dx=Rt(Su);function Lx(s,a){return Fh(s||[],a||[],xs)}function $x(s,a){return Fh(s||[],a||[],Ps)}var Rx=Rt(function(s){var a=s.length,f=a>1?s[a-1]:n;return f=typeof f=="function"?(s.pop(),f):n,bd(s,f)});function yd(s){var a=y(s);return a.__chain__=!0,a}function kx(s,a){return a(s),s}function Go(s,a){return a(s)}var Fx=_i(function(s){var a=s.length,f=a?s[0]:0,p=this.__wrapped__,v=function(w){return ql(w,s)};return a>1||this.__actions__.length||!(p instanceof zt)||!mi(f)?this.thru(v):(p=p.slice(f,+f+(a?1:0)),p.__actions__.push({func:Go,args:[v],thisArg:n}),new An(p,this.__chain__).thru(function(w){return a&&!w.length&&w.push(n),w}))});function Bx(){return yd(this)}function Hx(){return new An(this.value(),this.__chain__)}function zx(){this.__values__===n&&(this.__values__=$d(this.value()));var s=this.__index__>=this.__values__.length,a=s?n:this.__values__[this.__index__++];return{done:s,value:a}}function Nx(){return this}function Wx(s){for(var a,f=this;f instanceof Ro;){var p=dd(f);p.__index__=0,p.__values__=n,a?v.__wrapped__=p:a=p;var v=p;f=f.__wrapped__}return v.__wrapped__=s,a}function Ux(){var s=this.__wrapped__;if(s instanceof zt){var a=s;return this.__actions__.length&&(a=new zt(this)),a=a.reverse(),a.__actions__.push({func:Go,args:[Ou],thisArg:n}),new An(a,this.__chain__)}return this.thru(Ou)}function Vx(){return kh(this.__wrapped__,this.__actions__)}var jx=Wo(function(s,a,f){ee.call(s,f)?++s[f]:pi(s,f,1)});function Yx(s,a,f){var p=Et(s)?qf:ky;return f&&Je(s,a,f)&&(a=n),p(s,bt(a,3))}function Kx(s,a){var f=Et(s)?Ti:bh;return f(s,bt(a,3))}var Xx=Kh(pd),qx=Kh(gd);function Gx(s,a){return Be(Jo(s,a),1)}function Jx(s,a){return Be(Jo(s,a),E)}function Zx(s,a,f){return f=f===n?1:Dt(f),Be(Jo(s,a),f)}function xd(s,a){var f=Et(s)?Mn:Li;return f(s,bt(a,3))}function wd(s,a){var f=Et(s)?mb:vh;return f(s,bt(a,3))}var Qx=Wo(function(s,a,f){ee.call(s,f)?s[f].push(a):pi(s,f,[a])});function tw(s,a,f,p){s=an(s)?s:Yr(s),f=f&&!p?Dt(f):0;var v=s.length;return f<0&&(f=Ee(v+f,0)),na(s)?f<=v&&s.indexOf(a,f)>-1:!!v&&$r(s,a,f)>-1}var ew=Rt(function(s,a,f){var p=-1,v=typeof a=="function",w=an(s)?H(s.length):[];return Li(s,function(S){w[++p]=v?pn(a,S,f):Os(S,a,f)}),w}),nw=Wo(function(s,a,f){pi(s,f,a)});function Jo(s,a){var f=Et(s)?_e:Ph;return f(s,bt(a,3))}function iw(s,a,f,p){return s==null?[]:(Et(a)||(a=a==null?[]:[a]),f=p?n:f,Et(f)||(f=f==null?[]:[f]),Th(s,a,f))}var rw=Wo(function(s,a,f){s[f?0:1].push(a)},function(){return[[],[]]});function sw(s,a,f){var p=Et(s)?kl:Qf,v=arguments.length<3;return p(s,bt(a,4),f,v,Li)}function ow(s,a,f){var p=Et(s)?vb:Qf,v=arguments.length<3;return p(s,bt(a,4),f,v,vh)}function aw(s,a){var f=Et(s)?Ti:bh;return f(s,ta(bt(a,3)))}function lw(s){var a=Et(s)?ph:t1;return a(s)}function uw(s,a,f){(f?Je(s,a,f):a===n)?a=1:a=Dt(a);var p=Et(s)?Iy:e1;return p(s,a)}function cw(s){var a=Et(s)?Dy:i1;return a(s)}function fw(s){if(s==null)return 0;if(an(s))return na(s)?kr(s):s.length;var a=We(s);return a==z||a==X?s.size:eu(s).length}function hw(s,a,f){var p=Et(s)?Fl:r1;return f&&Je(s,a,f)&&(a=n),p(s,bt(a,3))}var dw=Rt(function(s,a){if(s==null)return[];var f=a.length;return f>1&&Je(s,a[0],a[1])?a=[]:f>2&&Je(a[0],a[1],a[2])&&(a=[a[0]]),Th(s,Be(a,1),[])}),Zo=Kb||function(){return Fe.Date.now()};function pw(s,a){if(typeof a!="function")throw new Cn(l);return s=Dt(s),function(){if(--s<1)return a.apply(this,arguments)}}function Od(s,a,f){return a=f?n:a,a=s&&a==null?s.length:a,gi(s,F,n,n,n,n,a)}function Sd(s,a){var f;if(typeof a!="function")throw new Cn(l);return s=Dt(s),function(){return--s>0&&(f=a.apply(this,arguments)),s<=1&&(a=n),f}}var Pu=Rt(function(s,a,f){var p=O;if(f.length){var v=Ii(f,Vr(Pu));p|=$}return gi(s,p,a,f,v)}),Pd=Rt(function(s,a,f){var p=O|C;if(f.length){var v=Ii(f,Vr(Pd));p|=$}return gi(a,p,s,f,v)});function Md(s,a,f){a=f?n:a;var p=gi(s,A,n,n,n,n,n,a);return p.placeholder=Md.placeholder,p}function Cd(s,a,f){a=f?n:a;var p=gi(s,k,n,n,n,n,n,a);return p.placeholder=Cd.placeholder,p}function Ad(s,a,f){var p,v,w,S,M,D,V=0,j=!1,G=!1,lt=!0;if(typeof s!="function")throw new Cn(l);a=Dn(a)||0,ve(f)&&(j=!!f.leading,G="maxWait"in f,w=G?Ee(Dn(f.maxWait)||0,a):w,lt="trailing"in f?!!f.trailing:lt);function pt(Me){var Wn=p,yi=v;return p=v=n,V=Me,S=s.apply(yi,Wn),S}function wt(Me){return V=Me,M=As(Ht,a),j?pt(Me):S}function Lt(Me){var Wn=Me-D,yi=Me-V,Kd=a-Wn;return G?Ne(Kd,w-yi):Kd}function Ot(Me){var Wn=Me-D,yi=Me-V;return D===n||Wn>=a||Wn<0||G&&yi>=w}function Ht(){var Me=Zo();if(Ot(Me))return Wt(Me);M=As(Ht,Lt(Me))}function Wt(Me){return M=n,lt&&p?pt(Me):(p=v=n,S)}function vn(){M!==n&&Bh(M),V=0,p=D=v=M=n}function Ze(){return M===n?S:Wt(Zo())}function bn(){var Me=Zo(),Wn=Ot(Me);if(p=arguments,v=this,D=Me,Wn){if(M===n)return wt(D);if(G)return Bh(M),M=As(Ht,a),pt(D)}return M===n&&(M=As(Ht,a)),S}return bn.cancel=vn,bn.flush=Ze,bn}var gw=Rt(function(s,a){return mh(s,1,a)}),_w=Rt(function(s,a,f){return mh(s,Dn(a)||0,f)});function mw(s){return gi(s,J)}function Qo(s,a){if(typeof s!="function"||a!=null&&typeof a!="function")throw new Cn(l);var f=function(){var p=arguments,v=a?a.apply(this,p):p[0],w=f.cache;if(w.has(v))return w.get(v);var S=s.apply(this,p);return f.cache=w.set(v,S)||w,S};return f.cache=new(Qo.Cache||di),f}Qo.Cache=di;function ta(s){if(typeof s!="function")throw new Cn(l);return function(){var a=arguments;switch(a.length){case 0:return!s.call(this);case 1:return!s.call(this,a[0]);case 2:return!s.call(this,a[0],a[1]);case 3:return!s.call(this,a[0],a[1],a[2])}return!s.apply(this,a)}}function vw(s){return Sd(2,s)}var bw=s1(function(s,a){a=a.length==1&&Et(a[0])?_e(a[0],gn(bt())):_e(Be(a,1),gn(bt()));var f=a.length;return Rt(function(p){for(var v=-1,w=Ne(p.length,f);++v<w;)p[v]=a[v].call(this,p[v]);return pn(s,this,p)})}),Mu=Rt(function(s,a){var f=Ii(a,Vr(Mu));return gi(s,$,n,a,f)}),Td=Rt(function(s,a){var f=Ii(a,Vr(Td));return gi(s,U,n,a,f)}),yw=_i(function(s,a){return gi(s,N,n,n,n,a)});function xw(s,a){if(typeof s!="function")throw new Cn(l);return a=a===n?a:Dt(a),Rt(s,a)}function ww(s,a){if(typeof s!="function")throw new Cn(l);return a=a==null?0:Ee(Dt(a),0),Rt(function(f){var p=f[a],v=ki(f,0,a);return p&&Ei(v,p),pn(s,this,v)})}function Ow(s,a,f){var p=!0,v=!0;if(typeof s!="function")throw new Cn(l);return ve(f)&&(p="leading"in f?!!f.leading:p,v="trailing"in f?!!f.trailing:v),Ad(s,a,{leading:p,maxWait:a,trailing:v})}function Sw(s){return Od(s,1)}function Pw(s,a){return Mu(cu(a),s)}function Mw(){if(!arguments.length)return[];var s=arguments[0];return Et(s)?s:[s]}function Cw(s){return Tn(s,m)}function Aw(s,a){return a=typeof a=="function"?a:n,Tn(s,m,a)}function Tw(s){return Tn(s,g|m)}function Ew(s,a){return a=typeof a=="function"?a:n,Tn(s,g|m,a)}function Iw(s,a){return a==null||_h(s,a,Le(a))}function Nn(s,a){return s===a||s!==s&&a!==a}var Dw=Yo(Zl),Lw=Yo(function(s,a){return s>=a}),sr=wh(function(){return arguments}())?wh:function(s){return ye(s)&&ee.call(s,"callee")&&!lh.call(s,"callee")},Et=H.isArray,$w=Uf?gn(Uf):Wy;function an(s){return s!=null&&ea(s.length)&&!vi(s)}function Pe(s){return ye(s)&&an(s)}function Rw(s){return s===!0||s===!1||ye(s)&&Ge(s)==Re}var Fi=qb||Fu,kw=Vf?gn(Vf):Uy;function Fw(s){return ye(s)&&s.nodeType===1&&!Ts(s)}function Bw(s){if(s==null)return!0;if(an(s)&&(Et(s)||typeof s=="string"||typeof s.splice=="function"||Fi(s)||jr(s)||sr(s)))return!s.length;var a=We(s);if(a==z||a==X)return!s.size;if(Cs(s))return!eu(s).length;for(var f in s)if(ee.call(s,f))return!1;return!0}function Hw(s,a){return Ss(s,a)}function zw(s,a,f){f=typeof f=="function"?f:n;var p=f?f(s,a):n;return p===n?Ss(s,a,n,f):!!p}function Cu(s){if(!ye(s))return!1;var a=Ge(s);return a==rn||a==ze||typeof s.message=="string"&&typeof s.name=="string"&&!Ts(s)}function Nw(s){return typeof s=="number"&&ch(s)}function vi(s){if(!ve(s))return!1;var a=Ge(s);return a==P||a==T||a==nn||a==nt}function Ed(s){return typeof s=="number"&&s==Dt(s)}function ea(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=B}function ve(s){var a=typeof s;return s!=null&&(a=="object"||a=="function")}function ye(s){return s!=null&&typeof s=="object"}var Id=jf?gn(jf):jy;function Ww(s,a){return s===a||tu(s,a,mu(a))}function Uw(s,a,f){return f=typeof f=="function"?f:n,tu(s,a,mu(a),f)}function Vw(s){return Dd(s)&&s!=+s}function jw(s){if(A1(s))throw new Tt(o);return Oh(s)}function Yw(s){return s===null}function Kw(s){return s==null}function Dd(s){return typeof s=="number"||ye(s)&&Ge(s)==Y}function Ts(s){if(!ye(s)||Ge(s)!=tt)return!1;var a=Ao(s);if(a===null)return!0;var f=ee.call(a,"constructor")&&a.constructor;return typeof f=="function"&&f instanceof f&&So.call(f)==Ub}var Au=Yf?gn(Yf):Yy;function Xw(s){return Ed(s)&&s>=-B&&s<=B}var Ld=Kf?gn(Kf):Ky;function na(s){return typeof s=="string"||!Et(s)&&ye(s)&&Ge(s)==gt}function mn(s){return typeof s=="symbol"||ye(s)&&Ge(s)==ft}var jr=Xf?gn(Xf):Xy;function qw(s){return s===n}function Gw(s){return ye(s)&&We(s)==xt}function Jw(s){return ye(s)&&Ge(s)==Bt}var Zw=Yo(nu),Qw=Yo(function(s,a){return s<=a});function $d(s){if(!s)return[];if(an(s))return na(s)?Hn(s):on(s);if(_s&&s[_s])return Ib(s[_s]());var a=We(s),f=a==z?Ul:a==X?xo:Yr;return f(s)}function bi(s){if(!s)return s===0?s:0;if(s=Dn(s),s===E||s===-E){var a=s<0?-1:1;return a*Z}return s===s?s:0}function Dt(s){var a=bi(s),f=a%1;return a===a?f?a-f:a:0}function Rd(s){return s?er(Dt(s),0,ht):0}function Dn(s){if(typeof s=="number")return s;if(mn(s))return at;if(ve(s)){var a=typeof s.valueOf=="function"?s.valueOf():s;s=ve(a)?a+"":a}if(typeof s!="string")return s===0?s:+s;s=th(s);var f=$0.test(s);return f||k0.test(s)?pb(s.slice(2),f?2:8):L0.test(s)?at:+s}function kd(s){return Jn(s,ln(s))}function tO(s){return s?er(Dt(s),-B,B):s===0?s:0}function Qt(s){return s==null?"":_n(s)}var eO=Wr(function(s,a){if(Cs(a)||an(a)){Jn(a,Le(a),s);return}for(var f in a)ee.call(a,f)&&xs(s,f,a[f])}),Fd=Wr(function(s,a){Jn(a,ln(a),s)}),ia=Wr(function(s,a,f,p){Jn(a,ln(a),s,p)}),nO=Wr(function(s,a,f,p){Jn(a,Le(a),s,p)}),iO=_i(ql);function rO(s,a){var f=Nr(s);return a==null?f:gh(f,a)}var sO=Rt(function(s,a){s=se(s);var f=-1,p=a.length,v=p>2?a[2]:n;for(v&&Je(a[0],a[1],v)&&(p=1);++f<p;)for(var w=a[f],S=ln(w),M=-1,D=S.length;++M<D;){var V=S[M],j=s[V];(j===n||Nn(j,Br[V])&&!ee.call(s,V))&&(s[V]=w[V])}return s}),oO=Rt(function(s){return s.push(n,td),pn(Bd,n,s)});function aO(s,a){return Gf(s,bt(a,3),Gn)}function lO(s,a){return Gf(s,bt(a,3),Jl)}function uO(s,a){return s==null?s:Gl(s,bt(a,3),ln)}function cO(s,a){return s==null?s:yh(s,bt(a,3),ln)}function fO(s,a){return s&&Gn(s,bt(a,3))}function hO(s,a){return s&&Jl(s,bt(a,3))}function dO(s){return s==null?[]:Bo(s,Le(s))}function pO(s){return s==null?[]:Bo(s,ln(s))}function Tu(s,a,f){var p=s==null?n:nr(s,a);return p===n?f:p}function gO(s,a){return s!=null&&id(s,a,By)}function Eu(s,a){return s!=null&&id(s,a,Hy)}var _O=qh(function(s,a,f){a!=null&&typeof a.toString!="function"&&(a=Po.call(a)),s[a]=f},Du(un)),mO=qh(function(s,a,f){a!=null&&typeof a.toString!="function"&&(a=Po.call(a)),ee.call(s,a)?s[a].push(f):s[a]=[f]},bt),vO=Rt(Os);function Le(s){return an(s)?dh(s):eu(s)}function ln(s){return an(s)?dh(s,!0):qy(s)}function bO(s,a){var f={};return a=bt(a,3),Gn(s,function(p,v,w){pi(f,a(p,v,w),p)}),f}function yO(s,a){var f={};return a=bt(a,3),Gn(s,function(p,v,w){pi(f,v,a(p,v,w))}),f}var xO=Wr(function(s,a,f){Ho(s,a,f)}),Bd=Wr(function(s,a,f,p){Ho(s,a,f,p)}),wO=_i(function(s,a){var f={};if(s==null)return f;var p=!1;a=_e(a,function(w){return w=Ri(w,s),p||(p=w.length>1),w}),Jn(s,gu(s),f),p&&(f=Tn(f,g|_|m,_1));for(var v=a.length;v--;)au(f,a[v]);return f});function OO(s,a){return Hd(s,ta(bt(a)))}var SO=_i(function(s,a){return s==null?{}:Jy(s,a)});function Hd(s,a){if(s==null)return{};var f=_e(gu(s),function(p){return[p]});return a=bt(a),Eh(s,f,function(p,v){return a(p,v[0])})}function PO(s,a,f){a=Ri(a,s);var p=-1,v=a.length;for(v||(v=1,s=n);++p<v;){var w=s==null?n:s[Zn(a[p])];w===n&&(p=v,w=f),s=vi(w)?w.call(s):w}return s}function MO(s,a,f){return s==null?s:Ps(s,a,f)}function CO(s,a,f,p){return p=typeof p=="function"?p:n,s==null?s:Ps(s,a,f,p)}var zd=Zh(Le),Nd=Zh(ln);function AO(s,a,f){var p=Et(s),v=p||Fi(s)||jr(s);if(a=bt(a,4),f==null){var w=s&&s.constructor;v?f=p?new w:[]:ve(s)?f=vi(w)?Nr(Ao(s)):{}:f={}}return(v?Mn:Gn)(s,function(S,M,D){return a(f,S,M,D)}),f}function TO(s,a){return s==null?!0:au(s,a)}function EO(s,a,f){return s==null?s:Rh(s,a,cu(f))}function IO(s,a,f,p){return p=typeof p=="function"?p:n,s==null?s:Rh(s,a,cu(f),p)}function Yr(s){return s==null?[]:Wl(s,Le(s))}function DO(s){return s==null?[]:Wl(s,ln(s))}function LO(s,a,f){return f===n&&(f=a,a=n),f!==n&&(f=Dn(f),f=f===f?f:0),a!==n&&(a=Dn(a),a=a===a?a:0),er(Dn(s),a,f)}function $O(s,a,f){return a=bi(a),f===n?(f=a,a=0):f=bi(f),s=Dn(s),zy(s,a,f)}function RO(s,a,f){if(f&&typeof f!="boolean"&&Je(s,a,f)&&(a=f=n),f===n&&(typeof a=="boolean"?(f=a,a=n):typeof s=="boolean"&&(f=s,s=n)),s===n&&a===n?(s=0,a=1):(s=bi(s),a===n?(a=s,s=0):a=bi(a)),s>a){var p=s;s=a,a=p}if(f||s%1||a%1){var v=fh();return Ne(s+v*(a-s+db("1e-"+((v+"").length-1))),a)}return ru(s,a)}var kO=Ur(function(s,a,f){return a=a.toLowerCase(),s+(f?Wd(a):a)});function Wd(s){return Iu(Qt(s).toLowerCase())}function Ud(s){return s=Qt(s),s&&s.replace(B0,Mb).replace(ib,"")}function FO(s,a,f){s=Qt(s),a=_n(a);var p=s.length;f=f===n?p:er(Dt(f),0,p);var v=f;return f-=a.length,f>=0&&s.slice(f,v)==a}function BO(s){return s=Qt(s),s&&v0.test(s)?s.replace(yf,Cb):s}function HO(s){return s=Qt(s),s&&S0.test(s)?s.replace(Ml,"\\$&"):s}var zO=Ur(function(s,a,f){return s+(f?"-":"")+a.toLowerCase()}),NO=Ur(function(s,a,f){return s+(f?" ":"")+a.toLowerCase()}),WO=Yh("toLowerCase");function UO(s,a,f){s=Qt(s),a=Dt(a);var p=a?kr(s):0;if(!a||p>=a)return s;var v=(a-p)/2;return jo(Do(v),f)+s+jo(Io(v),f)}function VO(s,a,f){s=Qt(s),a=Dt(a);var p=a?kr(s):0;return a&&p<a?s+jo(a-p,f):s}function jO(s,a,f){s=Qt(s),a=Dt(a);var p=a?kr(s):0;return a&&p<a?jo(a-p,f)+s:s}function YO(s,a,f){return f||a==null?a=0:a&&(a=+a),Qb(Qt(s).replace(Cl,""),a||0)}function KO(s,a,f){return(f?Je(s,a,f):a===n)?a=1:a=Dt(a),su(Qt(s),a)}function XO(){var s=arguments,a=Qt(s[0]);return s.length<3?a:a.replace(s[1],s[2])}var qO=Ur(function(s,a,f){return s+(f?"_":"")+a.toLowerCase()});function GO(s,a,f){return f&&typeof f!="number"&&Je(s,a,f)&&(a=f=n),f=f===n?ht:f>>>0,f?(s=Qt(s),s&&(typeof a=="string"||a!=null&&!Au(a))&&(a=_n(a),!a&&Rr(s))?ki(Hn(s),0,f):s.split(a,f)):[]}var JO=Ur(function(s,a,f){return s+(f?" ":"")+Iu(a)});function ZO(s,a,f){return s=Qt(s),f=f==null?0:er(Dt(f),0,s.length),a=_n(a),s.slice(f,f+a.length)==a}function QO(s,a,f){var p=y.templateSettings;f&&Je(s,a,f)&&(a=n),s=Qt(s),a=ia({},a,p,Qh);var v=ia({},a.imports,p.imports,Qh),w=Le(v),S=Wl(v,w),M,D,V=0,j=a.interpolate||_o,G="__p += '",lt=Vl((a.escape||_o).source+"|"+j.source+"|"+(j===xf?D0:_o).source+"|"+(a.evaluate||_o).source+"|$","g"),pt="//# sourceURL="+(ee.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++lb+"]")+` + "`" + `
` + "`" + `;s.replace(lt,function(Ot,Ht,Wt,vn,Ze,bn){return Wt||(Wt=vn),G+=s.slice(V,bn).replace(H0,Ab),Ht&&(M=!0,G+=` + "`" + `' +
__e(` + "`" + `+Ht+` + "`" + `) +
'` + "`" + `),Ze&&(D=!0,G+=` + "`" + `';
` + "`" + `+Ze+` + "`" + `;
__p += '` + "`" + `),Wt&&(G+=` + "`" + `' +
((__t = (` + "`" + `+Wt+` + "`" + `)) == null ? '' : __t) +
'` + "`" + `),V=bn+Ot.length,Ot}),G+=` + "`" + `';
` + "`" + `;var wt=ee.call(a,"variable")&&a.variable;if(!wt)G=` + "`" + `with (obj) {
` + "`" + `+G+` + "`" + `
}
` + "`" + `;else if(E0.test(wt))throw new Tt(u);G=(D?G.replace(p0,""):G).replace(g0,"$1").replace(_0,"$1;"),G="function("+(wt||"obj")+` + "`" + `) {
` + "`" + `+(wt?"":` + "`" + `obj || (obj = {});
` + "`" + `)+"var __t, __p = ''"+(M?", __e = _.escape":"")+(D?` + "`" + `, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
` + "`" + `:` + "`" + `;
` + "`" + `)+G+` + "`" + `return __p
}` + "`" + `;var Lt=jd(function(){return Jt(w,pt+"return "+G).apply(n,S)});if(Lt.source=G,Cu(Lt))throw Lt;return Lt}function tS(s){return Qt(s).toLowerCase()}function eS(s){return Qt(s).toUpperCase()}function nS(s,a,f){if(s=Qt(s),s&&(f||a===n))return th(s);if(!s||!(a=_n(a)))return s;var p=Hn(s),v=Hn(a),w=eh(p,v),S=nh(p,v)+1;return ki(p,w,S).join("")}function iS(s,a,f){if(s=Qt(s),s&&(f||a===n))return s.slice(0,rh(s)+1);if(!s||!(a=_n(a)))return s;var p=Hn(s),v=nh(p,Hn(a))+1;return ki(p,0,v).join("")}function rS(s,a,f){if(s=Qt(s),s&&(f||a===n))return s.replace(Cl,"");if(!s||!(a=_n(a)))return s;var p=Hn(s),v=eh(p,Hn(a));return ki(p,v).join("")}function sS(s,a){var f=it,p=dt;if(ve(a)){var v="separator"in a?a.separator:v;f="length"in a?Dt(a.length):f,p="omission"in a?_n(a.omission):p}s=Qt(s);var w=s.length;if(Rr(s)){var S=Hn(s);w=S.length}if(f>=w)return s;var M=f-kr(p);if(M<1)return p;var D=S?ki(S,0,M).join(""):s.slice(0,M);if(v===n)return D+p;if(S&&(M+=D.length-M),Au(v)){if(s.slice(M).search(v)){var V,j=D;for(v.global||(v=Vl(v.source,Qt(wf.exec(v))+"g")),v.lastIndex=0;V=v.exec(j);)var G=V.index;D=D.slice(0,G===n?M:G)}}else if(s.indexOf(_n(v),M)!=M){var lt=D.lastIndexOf(v);lt>-1&&(D=D.slice(0,lt))}return D+p}function oS(s){return s=Qt(s),s&&m0.test(s)?s.replace(bf,Rb):s}var aS=Ur(function(s,a,f){return s+(f?" ":"")+a.toUpperCase()}),Iu=Yh("toUpperCase");function Vd(s,a,f){return s=Qt(s),a=f?n:a,a===n?Eb(s)?Bb(s):xb(s):s.match(a)||[]}var jd=Rt(function(s,a){try{return pn(s,n,a)}catch(f){return Cu(f)?f:new Tt(f)}}),lS=_i(function(s,a){return Mn(a,function(f){f=Zn(f),pi(s,f,Pu(s[f],s))}),s});function uS(s){var a=s==null?0:s.length,f=bt();return s=a?_e(s,function(p){if(typeof p[1]!="function")throw new Cn(l);return[f(p[0]),p[1]]}):[],Rt(function(p){for(var v=-1;++v<a;){var w=s[v];if(pn(w[0],this,p))return pn(w[1],this,p)}})}function cS(s){return Ry(Tn(s,g))}function Du(s){return function(){return s}}function fS(s,a){return s==null||s!==s?a:s}var hS=Xh(),dS=Xh(!0);function un(s){return s}function Lu(s){return Sh(typeof s=="function"?s:Tn(s,g))}function pS(s){return Mh(Tn(s,g))}function gS(s,a){return Ch(s,Tn(a,g))}var _S=Rt(function(s,a){return function(f){return Os(f,s,a)}}),mS=Rt(function(s,a){return function(f){return Os(s,f,a)}});function $u(s,a,f){var p=Le(a),v=Bo(a,p);f==null&&!(ve(a)&&(v.length||!p.length))&&(f=a,a=s,s=this,v=Bo(a,Le(a)));var w=!(ve(f)&&"chain"in f)||!!f.chain,S=vi(s);return Mn(v,function(M){var D=a[M];s[M]=D,S&&(s.prototype[M]=function(){var V=this.__chain__;if(w||V){var j=s(this.__wrapped__),G=j.__actions__=on(this.__actions__);return G.push({func:D,args:arguments,thisArg:s}),j.__chain__=V,j}return D.apply(s,Ei([this.value()],arguments))})}),s}function vS(){return Fe._===this&&(Fe._=Vb),this}function Ru(){}function bS(s){return s=Dt(s),Rt(function(a){return Ah(a,s)})}var yS=hu(_e),xS=hu(qf),wS=hu(Fl);function Yd(s){return bu(s)?Bl(Zn(s)):Zy(s)}function OS(s){return function(a){return s==null?n:nr(s,a)}}var SS=Gh(),PS=Gh(!0);function ku(){return[]}function Fu(){return!1}function MS(){return{}}function CS(){return""}function AS(){return!0}function TS(s,a){if(s=Dt(s),s<1||s>B)return[];var f=ht,p=Ne(s,ht);a=bt(a),s-=ht;for(var v=Nl(p,a);++f<s;)a(f);return v}function ES(s){return Et(s)?_e(s,Zn):mn(s)?[s]:on(hd(Qt(s)))}function IS(s){var a=++Wb;return Qt(s)+a}var DS=Vo(function(s,a){return s+a},0),LS=du("ceil"),$S=Vo(function(s,a){return s/a},1),RS=du("floor");function kS(s){return s&&s.length?Fo(s,un,Zl):n}function FS(s,a){return s&&s.length?Fo(s,bt(a,2),Zl):n}function BS(s){return Zf(s,un)}function HS(s,a){return Zf(s,bt(a,2))}function zS(s){return s&&s.length?Fo(s,un,nu):n}function NS(s,a){return s&&s.length?Fo(s,bt(a,2),nu):n}var WS=Vo(function(s,a){return s*a},1),US=du("round"),VS=Vo(function(s,a){return s-a},0);function jS(s){return s&&s.length?zl(s,un):0}function YS(s,a){return s&&s.length?zl(s,bt(a,2)):0}return y.after=pw,y.ary=Od,y.assign=eO,y.assignIn=Fd,y.assignInWith=ia,y.assignWith=nO,y.at=iO,y.before=Sd,y.bind=Pu,y.bindAll=lS,y.bindKey=Pd,y.castArray=Mw,y.chain=yd,y.chunk=R1,y.compact=k1,y.concat=F1,y.cond=uS,y.conforms=cS,y.constant=Du,y.countBy=jx,y.create=rO,y.curry=Md,y.curryRight=Cd,y.debounce=Ad,y.defaults=sO,y.defaultsDeep=oO,y.defer=gw,y.delay=_w,y.difference=B1,y.differenceBy=H1,y.differenceWith=z1,y.drop=N1,y.dropRight=W1,y.dropRightWhile=U1,y.dropWhile=V1,y.fill=j1,y.filter=Kx,y.flatMap=Gx,y.flatMapDeep=Jx,y.flatMapDepth=Zx,y.flatten=_d,y.flattenDeep=Y1,y.flattenDepth=K1,y.flip=mw,y.flow=hS,y.flowRight=dS,y.fromPairs=X1,y.functions=dO,y.functionsIn=pO,y.groupBy=Qx,y.initial=G1,y.intersection=J1,y.intersectionBy=Z1,y.intersectionWith=Q1,y.invert=_O,y.invertBy=mO,y.invokeMap=ew,y.iteratee=Lu,y.keyBy=nw,y.keys=Le,y.keysIn=ln,y.map=Jo,y.mapKeys=bO,y.mapValues=yO,y.matches=pS,y.matchesProperty=gS,y.memoize=Qo,y.merge=xO,y.mergeWith=Bd,y.method=_S,y.methodOf=mS,y.mixin=$u,y.negate=ta,y.nthArg=bS,y.omit=wO,y.omitBy=OO,y.once=vw,y.orderBy=iw,y.over=yS,y.overArgs=bw,y.overEvery=xS,y.overSome=wS,y.partial=Mu,y.partialRight=Td,y.partition=rw,y.pick=SO,y.pickBy=Hd,y.property=Yd,y.propertyOf=OS,y.pull=ix,y.pullAll=vd,y.pullAllBy=rx,y.pullAllWith=sx,y.pullAt=ox,y.range=SS,y.rangeRight=PS,y.rearg=yw,y.reject=aw,y.remove=ax,y.rest=xw,y.reverse=Ou,y.sampleSize=uw,y.set=MO,y.setWith=CO,y.shuffle=cw,y.slice=lx,y.sortBy=dw,y.sortedUniq=gx,y.sortedUniqBy=_x,y.split=GO,y.spread=ww,y.tail=mx,y.take=vx,y.takeRight=bx,y.takeRightWhile=yx,y.takeWhile=xx,y.tap=kx,y.throttle=Ow,y.thru=Go,y.toArray=$d,y.toPairs=zd,y.toPairsIn=Nd,y.toPath=ES,y.toPlainObject=kd,y.transform=AO,y.unary=Sw,y.union=wx,y.unionBy=Ox,y.unionWith=Sx,y.uniq=Px,y.uniqBy=Mx,y.uniqWith=Cx,y.unset=TO,y.unzip=Su,y.unzipWith=bd,y.update=EO,y.updateWith=IO,y.values=Yr,y.valuesIn=DO,y.without=Ax,y.words=Vd,y.wrap=Pw,y.xor=Tx,y.xorBy=Ex,y.xorWith=Ix,y.zip=Dx,y.zipObject=Lx,y.zipObjectDeep=$x,y.zipWith=Rx,y.entries=zd,y.entriesIn=Nd,y.extend=Fd,y.extendWith=ia,$u(y,y),y.add=DS,y.attempt=jd,y.camelCase=kO,y.capitalize=Wd,y.ceil=LS,y.clamp=LO,y.clone=Cw,y.cloneDeep=Tw,y.cloneDeepWith=Ew,y.cloneWith=Aw,y.conformsTo=Iw,y.deburr=Ud,y.defaultTo=fS,y.divide=$S,y.endsWith=FO,y.eq=Nn,y.escape=BO,y.escapeRegExp=HO,y.every=Yx,y.find=Xx,y.findIndex=pd,y.findKey=aO,y.findLast=qx,y.findLastIndex=gd,y.findLastKey=lO,y.floor=RS,y.forEach=xd,y.forEachRight=wd,y.forIn=uO,y.forInRight=cO,y.forOwn=fO,y.forOwnRight=hO,y.get=Tu,y.gt=Dw,y.gte=Lw,y.has=gO,y.hasIn=Eu,y.head=md,y.identity=un,y.includes=tw,y.indexOf=q1,y.inRange=$O,y.invoke=vO,y.isArguments=sr,y.isArray=Et,y.isArrayBuffer=$w,y.isArrayLike=an,y.isArrayLikeObject=Pe,y.isBoolean=Rw,y.isBuffer=Fi,y.isDate=kw,y.isElement=Fw,y.isEmpty=Bw,y.isEqual=Hw,y.isEqualWith=zw,y.isError=Cu,y.isFinite=Nw,y.isFunction=vi,y.isInteger=Ed,y.isLength=ea,y.isMap=Id,y.isMatch=Ww,y.isMatchWith=Uw,y.isNaN=Vw,y.isNative=jw,y.isNil=Kw,y.isNull=Yw,y.isNumber=Dd,y.isObject=ve,y.isObjectLike=ye,y.isPlainObject=Ts,y.isRegExp=Au,y.isSafeInteger=Xw,y.isSet=Ld,y.isString=na,y.isSymbol=mn,y.isTypedArray=jr,y.isUndefined=qw,y.isWeakMap=Gw,y.isWeakSet=Jw,y.join=tx,y.kebabCase=zO,y.last=In,y.lastIndexOf=ex,y.lowerCase=NO,y.lowerFirst=WO,y.lt=Zw,y.lte=Qw,y.max=kS,y.maxBy=FS,y.mean=BS,y.meanBy=HS,y.min=zS,y.minBy=NS,y.stubArray=ku,y.stubFalse=Fu,y.stubObject=MS,y.stubString=CS,y.stubTrue=AS,y.multiply=WS,y.nth=nx,y.noConflict=vS,y.noop=Ru,y.now=Zo,y.pad=UO,y.padEnd=VO,y.padStart=jO,y.parseInt=YO,y.random=RO,y.reduce=sw,y.reduceRight=ow,y.repeat=KO,y.replace=XO,y.result=PO,y.round=US,y.runInContext=I,y.sample=lw,y.size=fw,y.snakeCase=qO,y.some=hw,y.sortedIndex=ux,y.sortedIndexBy=cx,y.sortedIndexOf=fx,y.sortedLastIndex=hx,y.sortedLastIndexBy=dx,y.sortedLastIndexOf=px,y.startCase=JO,y.startsWith=ZO,y.subtract=VS,y.sum=jS,y.sumBy=YS,y.template=QO,y.times=TS,y.toFinite=bi,y.toInteger=Dt,y.toLength=Rd,y.toLower=tS,y.toNumber=Dn,y.toSafeInteger=tO,y.toString=Qt,y.toUpper=eS,y.trim=nS,y.trimEnd=iS,y.trimStart=rS,y.truncate=sS,y.unescape=oS,y.uniqueId=IS,y.upperCase=aS,y.upperFirst=Iu,y.each=xd,y.eachRight=wd,y.first=md,$u(y,function(){var s={};return Gn(y,function(a,f){ee.call(y.prototype,f)||(s[f]=a)}),s}(),{chain:!1}),y.VERSION=i,Mn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){y[s].placeholder=y}),Mn(["drop","take"],function(s,a){zt.prototype[s]=function(f){f=f===n?1:Ee(Dt(f),0);var p=this.__filtered__&&!a?new zt(this):this.clone();return p.__filtered__?p.__takeCount__=Ne(f,p.__takeCount__):p.__views__.push({size:Ne(f,ht),type:s+(p.__dir__<0?"Right":"")}),p},zt.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),Mn(["filter","map","takeWhile"],function(s,a){var f=a+1,p=f==rt||f==st;zt.prototype[s]=function(v){var w=this.clone();return w.__iteratees__.push({iteratee:bt(v,3),type:f}),w.__filtered__=w.__filtered__||p,w}}),Mn(["head","last"],function(s,a){var f="take"+(a?"Right":"");zt.prototype[s]=function(){return this[f](1).value()[0]}}),Mn(["initial","tail"],function(s,a){var f="drop"+(a?"":"Right");zt.prototype[s]=function(){return this.__filtered__?new zt(this):this[f](1)}}),zt.prototype.compact=function(){return this.filter(un)},zt.prototype.find=function(s){return this.filter(s).head()},zt.prototype.findLast=function(s){return this.reverse().find(s)},zt.prototype.invokeMap=Rt(function(s,a){return typeof s=="function"?new zt(this):this.map(function(f){return Os(f,s,a)})}),zt.prototype.reject=function(s){return this.filter(ta(bt(s)))},zt.prototype.slice=function(s,a){s=Dt(s);var f=this;return f.__filtered__&&(s>0||a<0)?new zt(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),a!==n&&(a=Dt(a),f=a<0?f.dropRight(-a):f.take(a-s)),f)},zt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},zt.prototype.toArray=function(){return this.take(ht)},Gn(zt.prototype,function(s,a){var f=/^(?:filter|find|map|reject)|While$/.test(a),p=/^(?:head|last)$/.test(a),v=y[p?"take"+(a=="last"?"Right":""):a],w=p||/^find/.test(a);!v||(y.prototype[a]=function(){var S=this.__wrapped__,M=p?[1]:arguments,D=S instanceof zt,V=M[0],j=D||Et(S),G=function(Ht){var Wt=v.apply(y,Ei([Ht],M));return p&&lt?Wt[0]:Wt};j&&f&&typeof V=="function"&&V.length!=1&&(D=j=!1);var lt=this.__chain__,pt=!!this.__actions__.length,wt=w&&!lt,Lt=D&&!pt;if(!w&&j){S=Lt?S:new zt(this);var Ot=s.apply(S,M);return Ot.__actions__.push({func:Go,args:[G],thisArg:n}),new An(Ot,lt)}return wt&&Lt?s.apply(this,M):(Ot=this.thru(G),wt?p?Ot.value()[0]:Ot.value():Ot)})}),Mn(["pop","push","shift","sort","splice","unshift"],function(s){var a=wo[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",p=/^(?:pop|shift)$/.test(s);y.prototype[s]=function(){var v=arguments;if(p&&!this.__chain__){var w=this.value();return a.apply(Et(w)?w:[],v)}return this[f](function(S){return a.apply(Et(S)?S:[],v)})}}),Gn(zt.prototype,function(s,a){var f=y[a];if(f){var p=f.name+"";ee.call(zr,p)||(zr[p]=[]),zr[p].push({name:a,func:f})}}),zr[Uo(n,C).name]=[{name:"wrapper",func:n}],zt.prototype.clone=oy,zt.prototype.reverse=ay,zt.prototype.value=ly,y.prototype.at=Fx,y.prototype.chain=Bx,y.prototype.commit=Hx,y.prototype.next=zx,y.prototype.plant=Wx,y.prototype.reverse=Ux,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=Vx,y.prototype.first=y.prototype.head,_s&&(y.prototype[_s]=Nx),y},Fr=Hb();Ji?((Ji.exports=Fr)._=Fr,Ll._=Fr):Fe._=Fr}).call(mr)})(Z_,Z_.exports);const d0=e=>(Cm("data-v-277d1f9a"),e=e(),Am(),e),fk={key:0,class:"brief-table"},hk=["selected"],dk={class:"flex between inline"},pk=d0(()=>Q("h3",null,"\u662F\u5426\u5C06\u4EE5\u4E0BURL\u6DFB\u52A0\u5230API\u5B9A\u4E49\u4E2D\uFF1F",-1)),gk={key:0,id:"ec-selector"},_k=d0(()=>Q("div",{class:"info"},"\u9009\u62E9\u5217\u8868\u4E2D\u9700\u8981\u5C55\u793A\u7684\u4FE1\u606F",-1)),mk=["id","name","onUpdate:modelValue"],vk=["onClick","onDblclick"],bk={__name:"DashBoard",setup(e){tl.register(eE,uE,QT,$a,yc),tl.register({id:"center-text-plugin",beforeDraw:function(E){var ot;if((ot=E.config.options.elements)!=null&&ot.center){var B=E.ctx,Z=E.config.options.elements.center,at=E._metasets[E._metasets.length-1].data[0].innerRadius;for(let nt=0;nt<Z.length;nt++){const et=Z[nt];var ht=et.fontStyle||"Arial",mt=et.text,jt=et.color||"#000",pe=et.maxFontSize||75,oe=et.sidePadding||40,re=oe/100*(at*2),nn=et.size||1;B.font="30px "+ht;var Re=B.measureText(mt).width,te=at*2-re,ze=te/Re,rn=Math.floor(30*ze*nn),P=at*2,T=Math.min(rn,P,pe),z=et.minFontSize,Y=et.lineHeight||50;z===void 0&&(z=20),z&&T<z&&(T=z),B.textAlign="center",B.textBaseline="middle";var q=(E.chartArea.left+E.chartArea.right)/2,tt=(E.chartArea.top+E.chartArea.bottom)/2;B.font=T+"px "+ht,B.fillStyle=jt,tt+=-(Z.length-1)/2*Y+nt*Y,B.fillText(mt,q,tt)}}}});const t={1e4:"\u5408\u6CD5\u8BBF\u95EE",10001:"\u5BF9\u5E38\u89C1\u672A\u5B9A\u4E49URL\u7684\u8BBF\u95EE\uFF08\u641C\u7D22\u5F15\u64CE\u7B49\uFF09",10002:"\u5BF9\u672A\u5B9A\u4E49\u9759\u6001\u6587\u4EF6\u7684\u8BBF\u95EE",10003:"\u5BF9\u672A\u5B9A\u4E49URL\u7684\u8BBF\u95EE",10004:"URL\u6B63\u786E\u4F46\u8C03\u7528\u65B9\u6CD5\u4E0D\u6B63\u786E",10005:"\u672A\u63D0\u4EA4\u8981\u6C42\u63D0\u4EA4\u7684\u53C2\u6570",10006:"\u63D0\u4EA4\u4E86\u672A\u8981\u6C42\u63D0\u4EA4\u7684\u53C2\u6570",10007:"\u53C2\u6570\u6EE5\u7528",9999:"\u5176\u4ED6\u672A\u77E5\u9519\u8BEF"},n=R(Object.fromEntries(Object.entries(t).map(E=>(E[1]=!0,E)))),i=At(()=>analysis_result);At(()=>Object.values(i.value.Brief).reduce((E,B)=>E+B,0));const r=At(()=>{var E=[],B=[],Z=Object.entries(i.value.Brief);return E=Z.map(([at,ht])=>t[at]),d.value?B=l.value.reduce((at,ht)=>{var mt=Z.findIndex(([jt,pe])=>jt==ht.e);return at[mt]?at[mt]++:at[mt]=1,at},[]):B=Z.map(([at,ht])=>ht),{labels:E,datasets:[{backgroundColor:["#19CCBF","#0970FF","#F75B79","#F78F2F","#6CC43F","#55A3EF","#F3CC3A","#E6EAEF"],data:B}]}}),o=R(null),l=At(()=>d.value?i.value.Detail.filter(E=>{var B=g.find(Z=>E.u.endsWith(Z));return!B}):i.value.Detail),u=At(()=>l.value.filter(E=>{var B=!1;return d.value&&(B|=g.includes(Z=>E.u.endsWith(Z))),h.value.error_type&&(B|=h.value.error_type!=E.e),h.value.method&&(B|=h.value.method!=E.m),h.value.status_code&&(h.value.status_code.endsWith("XX")?B|=Math.floor(E.s/100)!=new Number(h.value.status_code[0]):B|=h.value.status_code!=E.s),!B})),c=R(null),h=R({method:"",status_code:"",error_type:""}),d=At({get(){if(c.value==null){var E=localStorage.getItem("static_filtered");c.value=JSON.parse(E)}return c.value},set(E){c.value=E;var B=JSON.stringify(E);localStorage.setItem("static_filtered",B)}}),g=[".js",".png",".jpg",".jpeg",".js",".css",".html","svg"],_=R(!1),m=R("brief"),x=R(null),b=At(()=>u.value.filter(E=>E.c==x.value)),O=R(!1),C=At(()=>Object.entries(i.value.Clients).filter(E=>n.value[E[1].m])),L=R(null),A=R(!1),k=R(null),$=R(null);Mt(()=>m.value,()=>{h.value={method:"",status_code:"",error_type:""}}),_l(()=>{window.onpopstate=E=>{var Z,at,ht;var B=(ht=(at=(Z=E.path)==null?void 0:Z[0])==null?void 0:at.location)==null?void 0:ht.hash.replace("#","");B||(B="brief"),m.value=B,E.state&&E.client&&(x.value=E.client)}});function U(E){const B=o.value.chart.getElementsAtEventForMode(E,"nearest",{intersect:!0},!0);if(B.length){const Z=B[0],at=o.value.chart.data.labels[Z.index];h.value.error_type==at?h.value.error_type="":h.value.error_type=Object.entries(t).find(([ht,mt])=>mt==at)[0]}}function F(E){history.pushState({client:E},"","#clients"),m.value="clients",x.value=E}function N(E){history.pushState({},"","#"+E),m.value=E}function J(){_.value=!_.value}function it(E){E=new Number(E);for(let B=9999;B<=E;B++)n.value[B]=!0;for(let B=E+1;B<=10007;B++)n.value[B]=!1}function dt(E){E=new Number(E);for(let B=9999;B<=10007;B++)n.value[B]=!1;n.value[E]=!0}function Pt(){O.value=!1}function ut(){ds(()=>{L.value.update()})}function rt(E){console.log("here"),k.value=E,A.value=!0}function K(){var E=k.value;$.value==null&&($.value={paths:{}});var B={};B[E.m]={},$.value.paths[E.u]=B}function st(E){h.value=E}return(E,B)=>(St(),Ft(de,null,[Vt(x2,{modelValue:m.value,"onUpdate:modelValue":B[1]||(B[1]=Z=>m.value=Z),onInput:N,style:{height:"auto",overflow:"hidden"}},{default:xe(()=>[Vt(Yu,{label:"\u7EDF\u8BA1\u7B80\u62A5",name:"brief"},{default:xe(()=>[Vt(pc,{label:"\u8BBF\u95EE\u7EDF\u8BA1","overflow-hidden":""},{toolbar:xe(()=>[Q("button",{size:"small",plain:"",variant:"primary",class:"icon",onClick:J},[_.value?(St(),Vn(Yt(rk),{key:0})):(St(),Vn(Yt(ZR),{key:1}))])]),default:xe(()=>[_.value?(St(),Ft("table",fk,[(St(!0),Ft(de,null,ji(Yt(r).labels,(Z,at)=>{var ht,mt,jt,pe;return St(),Ft("tr",{key:E.inde},[Q("th",null,ne(Z),1),Q("td",null,ne((pe=(jt=(mt=(ht=Yt(r))==null?void 0:ht.datasets)==null?void 0:mt[0])==null?void 0:jt.data)==null?void 0:pe[at]),1)])}),128))])):(St(),Vn(Yt(BE),{key:1,"chart-data":Yt(r),"chart-options":{onClick:U,elements:{center:[{text:Yt(l).length,color:"#0970FF",size:1.1},{text:"\u6570\u636E\u603B\u6761\u6570",color:"#666666",size:.8}]},cutout:"70%",plugins:{legend:{position:"bottom",align:"start",labels:{padding:20}}}},width:"90%",height:"90%",class:"pie-chart",ref_key:"statPie",ref:o},null,8,["chart-data","chart-options"])),Vt(Jm,{"label-width":120,style:{"margin-top":"30px"}},{default:xe(()=>[Vt(ts,{label:"\u6570\u636E\u603B\u6761\u6570\uFF1A"},{default:xe(()=>[Mi(ne(Yt(i).Detail.length)+"\u6761 ",1)]),_:1}),Vt(ts,{label:"\u8FC7\u6EE4\u540E\u603B\u6761\u6570\uFF1A"},{default:xe(()=>[Mi(ne(Yt(l).length)+"\u6761",1)]),_:1}),Vt(ts,{label:"\u8BB0\u5F55\u5BA2\u6237\u6570"},{default:xe(()=>[Mi(ne(Yt(i).ClientCount)+"\u4E2A",1)]),_:1})]),_:1})]),_:1}),Vt(J_,{style:{flex:"1"},records:Yt(u),onSelectClient:F,onSelectRecord:rt,onSetFilter:st,filter:h.value},null,8,["records","filter"])]),_:1}),Vt(Yu,{label:"\u5BA2\u6237\u62A5\u544A",name:"clients",onShown:ut},{default:xe(()=>[Vt(pc,{label:"\u5BA2\u6237\u7AEF\u5217\u8868",style:{"max-width":"300px"},"overflow-hidden":""},{toolbar:xe(()=>[Q("button",{variant:"primary",plain:"",size:"small",onClick:B[0]||(B[0]=Z=>O.value=!O.value),selected:O.value},[Vt(Yt(ck))],8,hk)]),default:xe(()=>[Vt(N2,{class:"clients",ref_key:"clients",ref:L,style:{height:"100%"}},{default:xe(()=>[(St(!0),Ft(de,null,ji(Yt(C),(Z,at)=>(St(),Vn(W2,{key:at,class:Sr({active:Z[0]==x.value}),onClick:ht=>x.value=Z[0]},{default:xe(()=>[Q("div",dk,[Mi(ne(Z[0]),1),Q("span",{class:Sr(["badge","ec-badge-"+Z[1].m])},ne(Z[1].m-1e4),3)])]),_:2},1032,["class","onClick"]))),128))]),_:1},512)]),_:1}),Vt(J_,{style:{flex:"1"},records:Yt(b),filter:h.value},null,8,["records","filter"])]),_:1}),$.value?(St(),Vn(Yu,{key:0,label:"API\u5B9A\u4E49",name:""},{default:xe(()=>[Vt(X$,{doc:$.value},null,8,["doc"])]),_:1})):Pr("",!0)]),_:1},8,["modelValue"]),Vt(jR,{modelValue:A.value,"onUpdate:modelValue":B[2]||(B[2]=Z=>A.value=Z),header:"\u6DFB\u52A0\u5230API\u5B9A\u4E49",onConfirm:K},{default:xe(()=>[pk,Q("b",null,ne(k.value.m)+"\xA0",1),Mi(ne(k.value.u),1)]),_:1},8,["modelValue"]),O.value?Qr((St(),Ft("div",gk,[_k,(St(),Ft(de,null,ji(t,(Z,at)=>Q("div",{key:Z,class:"ec-selector-item"},[Qr(Q("input",{type:"checkbox",id:"ec-"+at,name:"ec-"+at,"onUpdate:modelValue":ht=>n.value[at]=ht},null,8,mk),[[c2,n.value[at]]]),Q("label",{onClick:ht=>it(at),onDblclick:ht=>dt(at)},"["+ne(at)+"]"+ne(Z),41,vk)])),64))])),[[Yt(ZD),Pt]]):Pr("",!0)],64))}},yk=ui(bk,[["__scopeId","data-v-277d1f9a"]]),xk={key:0},wk=Q("h1",null,"ApiCat OpenAPI\u65E5\u5FD7\u5206\u6790\u4FE1\u606F",-1),Ok=[wk],Sk={__name:"App",setup(e){const t=At(()=>{const n=window.location.search;return new URLSearchParams(n).get("noheader")!="true"});return(n,i)=>(St(),Ft(de,null,[Yt(t)?(St(),Ft("header",xk,Ok)):Pr("",!0),Vt(yk)],64))}};p2(Sk).mount("#app");

</script>
    <style>
@charset "UTF-8";.tabs-wrapper[data-v-aca1330d]{flex:1;display:flex;flex-direction:column}.tabs-labels[data-v-aca1330d]{display:flex;list-style:none;padding-inline-start:0;border-bottom:1px solid #ddd}.tabs-labels li[data-v-aca1330d]{padding:10px;margin:0 16px}.tabs-labels li.active[data-v-aca1330d]{color:var(--apicat-primary-color);border-bottom:3px solid var(--apicat-primary-color);margin-bottom:-2px}.contents[data-v-aca1330d]{flex:1;display:flex;background:#F5F7F9;height:auto;overflow:hidden}div.tab-detail[data-v-ffa761d9]{width:100%;display:flex}.items[data-v-8d0892c0]{display:flex;margin:10px;text-align:left;flex-wrap:wrap}div.label[data-v-65b10140]{display:inline-block;font-weight:700}.btn{cursor:pointer;color:#606266;padding:0 10px}.btn[disabled=true]{color:#c0c4cc}.btn[current=true]{color:var(--apicat-primary-color)}.wrapper[data-v-8bdf169f]{overflow-y:hidden;overflow-x:hidden}ul[data-v-8bdf169f]{list-style:none;padding-inline-start:0}ul[data-v-8bdf169f] li{padding:5px 10px}ul[data-v-8bdf169f] li:nth-child(2n+1){background-color:#fdfdfd}ul[data-v-8bdf169f] li.active{color:#0970ffcc;background-color:#f4f4f6}div.panel[data-v-c9d72711]{min-height:300px;width:calc(33% - 20px);border:1px solid #f3f3f3;margin:10px;background:white;border-radius:6px}div.panel .title[data-v-c9d72711]{font-size:1.14em;color:#222c}div.panel header[data-v-c9d72711]{background-color:#fff;color:#2e2e2e;line-height:56px;align-content:center;flex-wrap:wrap}div.panel .panel-body[data-v-c9d72711]{width:auto;height:calc(100% - 56px);display:flex;flex-direction:column;overflow-y:scroll;overflow-x:hidden}div.panel .panel-body.overflow-hidden[data-v-c9d72711]{overflow-y:hidden}.jsonEditorWrapper[data-v-d3cb383f]{flex:1;height:100%}.jsonEditorWrapper pre[data-v-d3cb383f]{background-color:#414141;color:#fff;margin:20px;border-radius:6px;padding:10px;font-family:Courier New,Courier,monospace}.jsonEditorWrapper code[data-v-d3cb383f]{font-size:.9em;text-indent:0}.jsonEditorWrapper code[data-v-d3cb383f] :first-line{padding-left:0}.current-page[data-v-fb724dc6]{display:block;background:lightgray;width:25px;line-height:2em;color:#fff;background-color:var(--apicat-success-color);border-left:1px solid white;height:calc(2em + 2px);border-right:1px solid white}.ip[data-v-fb724dc6]{text-decoration:none;color:#0970ff}td.url-td[data-v-fb724dc6]:hover{background-color:#f9f9f9}td.url-td[data-v-fb724dc6]:hover:after{content:"\5f55\5165";float:right;background:#f2f2f2;padding:2px 10px;color:gray;font-weight:700}tr.detail>td>*[data-v-fb724dc6]{border-radius:10px;background:#f9f9f9;margin:10px;padding:10px 50px}table[data-v-fb724dc6]{width:100%;text-align:center;border-collapse:collapse}table tfoot[data-v-fb724dc6],table thead[data-v-fb724dc6]{background:#FCFCFC;height:3em}table tr[data-v-fb724dc6]{height:2.6em;border-bottom:1px solid #E0E0E0}.table-wrapper[data-v-fb724dc6]{height:calc(100% - 56px);overflow-y:scroll}.wrapper[data-v-038452b1]{background-color:#0006;height:100vh;width:100vw;z-index:1000;position:absolute;top:0;left:0;display:flex;justify-content:center}.wrapper .dialog[data-v-038452b1]{background:white;align-self:center;width:600px;border-radius:6px}.wrapper .dialog .header[data-v-038452b1]{height:56px;border-bottom:1px solid lightgray;padding:13px 18px;font-size:18px}.wrapper .dialog .footer[data-v-038452b1]{display:flex;border-top:1px solid lightgray;padding:13px 18px;justify-content:flex-end}.wrapper .dialog .body[data-v-038452b1]{padding:20px}.pie-chart[data-v-277d1f9a]{width:70%;margin:1em auto 10px}.brief-table[data-v-277d1f9a]{margin:20px}.brief-table tr+tr[data-v-277d1f9a]{margin:2px}.brief-table th[data-v-277d1f9a]{background-color:#fafafa;line-height:1.4em;width:150px;line-break:auto}.brief-table td[data-v-277d1f9a]{background-color:#f2f2f2;line-height:1.4em;width:100px;text-align:center;font-weight:700}span.badge[data-v-277d1f9a]{width:16px;height:16px;background-color:#f4f4f4;display:block;text-align:center;line-height:14px;font-weight:700;color:#fff;border:1px solid white;border-radius:2px}span.badge.ec-badge-10000[data-v-277d1f9a]{background-color:#edfbf3;border-color:#97e5ba;color:#16c566}span.badge.ec-badge-10001[data-v-277d1f9a]{background-color:#fffbe6;border-color:#ffe58f;color:#faad14}span.badge.ec-badge-10002[data-v-277d1f9a]{background-color:#fff6f1;border-color:#fbcaaf;color:#f5894e}span.badge.ec-badge-10003[data-v-277d1f9a]{background-color:#fef1ed;border-color:#f9ad99;color:#f2481c}#ec-selector[data-v-277d1f9a]{position:absolute;top:155px;left:262px;background:#FFFFFF;box-shadow:0 2px 12px #00000014;border-radius:4px;padding:20px}#ec-selector .ec-selector-item[data-v-277d1f9a]{background-color:var(--apicat-success-light-color);line-height:1.6em;padding:6px 20px;display:flex}#ec-selector .ec-selector-item label[data-v-277d1f9a]{margin-left:12px;flex:1}#ec-selector .ec-selector-item input[data-v-277d1f9a]{width:16px;height:16px;flex-shrink:0;align-self:center;appearance:none;background-color:#fff;margin:0;font:inherit;color:var(--apicat-primary-color);width:1.15em;height:1.15em;border:.15em solid var(--apicat-primary-color);border-radius:2px;display:grid;place-content:center}#ec-selector .ec-selector-item input[data-v-277d1f9a]:before{content:"";width:.65em;height:.65em;border-radius:50%;transform:scale(0);transition:80ms transform ease-in-out;clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0%,43% 62%);box-shadow:inset 1em 1em var(--apicat-primary-color)}#ec-selector .ec-selector-item input[data-v-277d1f9a]:checked{background-color:var(--apicat-primary-color);fill:#fff}#ec-selector .ec-selector-item input[data-v-277d1f9a]:checked:before{box-shadow:inset 1em 1em #fff;transform:scale(1)}#ec-selector+.ec-selector-item[data-v-277d1f9a]{margin-top:3px}.info[data-v-277d1f9a]{margin-top:-20px;margin-left:-20px;margin-right:-20px;background-color:#f0f0f0;padding:10px 40px}:root{--vt-c-white: #ffffff;--vt-c-white-soft: #f8f8f8;--vt-c-white-mute: #f2f2f2;--apicat-primary-color: #0970ff;--apicat-primary-light-color: #ecf4ff;--apicat-primary-light-border-color: #91bfff;--apicat-secondary-color: #6cc43f;--apicat-success-color: #16c566;--apicat-success-light-color: #f4fbf0;--apicat-success-light-border-color: #bde4a9;--apicat-warning-color: #f5894e;--apicat-danger-color: #f2481c;--apicat-info-color: #00a3f0;--apicat-info-color-light: #d6f0fc;--vt-c-black: #181818;--vt-c-black-soft: #222222;--vt-c-black-mute: #282828;--vt-c-indigo: #2c3e50;--vt-c-divider-light-1: rgba(60, 60, 60, .29);--vt-c-divider-light-2: rgba(60, 60, 60, .12);--vt-c-divider-dark-1: rgba(84, 84, 84, .65);--vt-c-divider-dark-2: rgba(84, 84, 84, .48);--vt-c-text-light-1: var(--vt-c-indigo);--vt-c-text-light-2: rgba(60, 60, 60, .66);--vt-c-text-dark-1: var(--vt-c-white);--vt-c-text-dark-2: rgba(235, 235, 235, .64)}:root{--color-background: var(--vt-c-white);--color-background-soft: var(--vt-c-white-soft);--color-background-mute: var(--vt-c-white-mute);--color-border: var(--vt-c-divider-light-2);--color-border-hover: var(--vt-c-divider-light-1);--color-heading: var(--vt-c-text-light-1);--color-text: var(--vt-c-text-light-1);--section-gap: 160px}@media (prefers-color-scheme: dark){:root{--color-background: var(--vt-c-black);--color-background-soft: var(--vt-c-black-soft);--color-background-mute: var(--vt-c-black-mute);--color-border: var(--vt-c-divider-dark-2);--color-border-hover: var(--vt-c-divider-dark-1);--color-heading: var(--vt-c-text-dark-1);--color-text: var(--vt-c-text-dark-2)}}*,*:before,*:after{box-sizing:border-box;margin:0}body{min-height:100vh;color:var(--color-text);background:var(--color-background);transition:color .5s,background-color .5s;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:14px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#app{height:100vh;font-weight:400}.green{text-decoration:none;color:#00bd7e;transition:.4s}@media (hover: hover){a:hover{background-color:#0970ff44}}@media (min-width: 1024px){body{display:grid}#app{display:flex;flex-direction:column;overflow-y:hidden}header{height:56px;padding-left:30px;background-color:#333;color:#fff;display:flex;align-content:center}header>h1{font-size:1.5em;line-height:56px}}.inline{display:inline-flex;align-items:center;align-self:center}.flex{display:flex}.flex.between{justify-content:space-between}.flex.end{justify-content:flex-end}.flex.inline{align-items:center}button,select.button{line-height:2em;padding:2px 10px;height:2.4em;border-radius:2px}button.icon{border-radius:2px}button img,button svg{width:1.6em;height:1.6em;margin:0 -6px}button+button{margin-left:3px}select{border-color:#dcdfe6;height:1.6em;border-radius:2px}button[size=small]{height:1.8em;line-height:1.6em}button[variant=success],select[variant=success]{border:none;color:#fff;background-color:var(--apicat-success-color)}button[variant=primary],select[variant=primary]{border:none;color:#fff;border-width:0;background-color:var(--apicat-primary-color)}button[variant=primary][disabled],select[variant=primary][disabled]{color:#d3d3d3;background-color:var(--apicat-primary-light-color)}button[plain],select[plain],button[variant=primary][plain],select[variant=primary][plain]{color:var(--apicat-primary-color);background-color:var(--apicat-primary-light-color);border-color:var(--apicat-primary-light-border-color)}button[variant=primary][plain][selected=true]{border:1px solid var(--apicat-primary-color)}button[variant=primary][plain] svg path,select[variant=primary][plain] svg path{fill:var(--apicat-primary-color)}button[variant=success][plain],select[variant=success][plain]{color:var(--apicat-success-color);background-color:var(--apicat-success-light-color);border-color:var(--apicat-success-light-border-color)}button[variant=danger],select[variant=danger]{border:none;color:#fff;background-color:var(--apicat-danger-color)}button[variant=danger][plain],select[variant=danger][plain]{color:var(--apicat-danger-color);background-color:var(--apicat-danger-light-color);border-color:var(--apicat-danger-light-border-color)}.success{color:var(--apicat-success-color)}.danger{color:var(--apicat-danger-color)}button[variant=success]:hover{background-color:#16c56699;cursor:pointer}.mr-1{margin-right:1em}span.info,div.info{color:#00000080;line-height:20px}.footer{align-content:center;flex-wrap:wrap;height:56px;background-color:#fdfdfd;padding-right:12px;box-shadow:0 2px 12px #0000000f}

</style>
  </head>
  <body>
    <div id="app"></div>
    
  </body>
</html>
`
